Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

HTML Responsive Images Image Delivery with Srcset and Sizes Image Formats

Thiago Valadares Noleto Damasceno
seal-mask
.a{fill-rule:evenodd;}techdegree
Thiago Valadares Noleto Damasceno
UX Design Techdegree Student 19,096 Points

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,008 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,008 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.