Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML Responsive Images Image Delivery with Srcset and Sizes Image Formats

How do image compressors work?

Usually I use a lot online compressor tools like: Tiny PNG (https://tinypng.com/) Compressor (https://compressor.io/)

What is the downside of using them and what is the main difference between this option and the one that nick just presented?

2 Answers

jason chan
jason chan
31,009 Points

The download side to using image compression it becomes lossy. it loses quality. That's why you just set the quality to 60. You lose lots of colors.

Compression is just to make files load faster in web browsers and mobile because imagine downloading 8mb 4k image file onto your phone. It's gonna lag. lols plus i don't think the phone can handle that amount of memory on it's system memory DRAM.

jason chan
jason chan
31,009 Points

https://teamtreehouse.com/library/svg-basics

check this course and learn about svgs creating responsive vector graphics. As for photography pictures well you have to compress them. No way around that. That's photoshop and lightroom.