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.


Matthew Francis
Matthew Francis
6,967 Points

Regarding using <picture>

I'm using <picture>. Just wondering; should you always support retina displays by providing higher quality/dimension images? or is the main focus to change images when a breakpoint occurs?

Eg of different images for different breakpoints;


<source media="(orientation:landscape)" srcset="img/firstlook.jpg" />

<source srcset="firstlook-smallerscreen.jpg" />

<img class="content-image" src="firstlook.jpg" alt="First look - soft,simple new styles are here.">


luther wardle
luther wardle
Full Stack JavaScript Techdegree Student 18,029 Points

breakpoints are tricky. I would say both if possible, if you are trying to reach many device sizes by using lots of break points, I would try sourcing images of a medium to smaller size that you know sport good enough resolution that they can be seen clearly from a larger screen even though they won't be extremely high in quality. That way they will still appear properly saturated on the smaller screens

1 Answer

Alan Brown
Alan Brown
20,419 Points

I agree with Luther. You are weighing up a bunch of factors. In general you want smaller file weights (file download size) on mobile connections, but it's these devices that are more likely to have high density screens. I have found that using bigger (dimensions) images at lower quality often has the desired result. If you work with a designer you'll find that matching the proportions of an image for different breakpoints become important too.