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

Development Tools

Josh Curtis
Josh Curtis
7,782 Points

What is the best way to resize images?

HI, I am optimizing a site and I have about 20 pictures that are currently being resized with css. This makes loading very slow. What is the best way to fix this? Should I scale and compress each picture? If so how should I go about doing that? I could use Gimp but that will be fairly time consuming. I found a bunch of online programs that can resize in bulk but I'm not sure if they are any good. Does anyone have any recommendations? Thanks!

1 Answer

Nicolas Bassano
Nicolas Bassano
2,125 Points

Hi Josh....Im 15 days late with this answer (joined treehouse couple of days ago). Ill post this answer just in case.

Photoshop for example has something called actions.

You just create one action and step by step apply the modifications you want for the image (resize, brightness, ppi, save as, close file). And then you just apply the actions to the rest. Simple and really fast.

Im sure Gimp has this as default or as a plug-in and it should work pretty much the same.