[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y / ] [Home]
4chanarchives logo

Newbie here,Could someone explain to me the best solution for implementing graphics


Thread replies: 6
Thread images: 1

File: 1453245830702.jpg (83KB, 900x650px) Image search: [Google] [Yandex] [Bing]
1453245830702.jpg
83KB, 900x650px
Newbie here,

Could someone explain to me the best solution for implementing graphics into a web page?

For example icons next to paragraphs of text, or designs in the background of a website.

Would you use vector graphics? Or JPEGs with low file sizes?
>>
>>252715
SVG if the art is vector, otherwise 72dpi png for flat graphic stuff and 72dpi jpeg for photos/detailed illustration

SVG will always look the nicest if you have vector options since it scales. 72dpi png and jpeg look good on most screens except retina ones so 144dpi might be ok if you care about sharpness and don't have a ton of images for your user to download/view.

many ways to optimize the file sizes for web graphics as well, varies by file type usually.
>>
>>252717
Summed it all up.

/thread
>>
You also may want to look into creating an icon font.
>>
>>252715
Also, you might want to learn how to use CSS Sprites to reduce the amount of HTTP Requests.
>>
use SVG, every modern browser supports it and you can manipulate it with JS and CSS

also, compress the files with this:

https://jakearchibald.github.io/svgomg/
Thread replies: 6
Thread images: 1
[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y / ] [Home]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
If a post contains illegal content, please click on its [Report] button and follow the instructions.
This is a 4chan archive - all of the content originated from them. If you need information for a Poster - you need to contact them.
This website shows only archived content and is not affiliated with 4chan in any way.
If you like this website please support us by donating with Bitcoin at 1XVgDnu36zCj97gLdeSwHMdiJaBkqhtMK