best way to optimize photos for web

clarkkent93
clarkkent93's picture

Joined: 2006-08-18
Posts: 6
Posted: Wed, 2006-10-18 02:54

I tried searching for this topic but it appears I get an error saying that the database is too large to do such a search so here I am.

What is the best and hopefully, free, program that optimizes photos for the web? Is there the possibility of doing it in bulk?

Thanks in advance for any help.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Wed, 2006-10-18 04:25
 
clarkkent93
clarkkent93's picture

Joined: 2006-08-18
Posts: 6
Posted: Wed, 2006-10-18 05:15

I can google with the best of them. I was hoping for people's opinion on what works best for them.

 
cush
cush's picture

Joined: 2006-09-19
Posts: 15
Posted: Tue, 2006-10-24 19:45

What exactly do you mean by "optimizes photos for the web"? If you get along with resizing and adjusting brightness, saturation, contrast ... you could use Irfanview which is a really great application for free. It does a great job in mass auto conversions. If you need the possibility of manipulating the image content you definitely need something else.

--
serving bits since ever!

 
Tracken

Joined: 2006-11-04
Posts: 1
Posted: Sat, 2006-11-04 05:18

Well, if you have photoshop, there is an option to save your image for the web. It is under the File menu, then select save for the web, and then choose the settings you want to use. You can convert the file to .jpg, or .gif, as well as png. Though, I don't know about thing outside of photoshop.

 
sparr

Joined: 2006-11-02
Posts: 14
Posted: Sat, 2006-11-04 09:48

The script that I run on a fresh-from-the-camera folder of images before uploading them to my site is as follows:

mkdir 1280x1280
for i in *.jpg
do
  convert -resize 1280x1280 -quality 80 $i 1280x1280/$i
  jhead -te $i 1280x1280/$i
  exifautotran 1280x1280/$i
done

This makes a subfolder. Then uses ImageMagick to resize all the images (3000x2000 from the camera) to 1280x960, jpeg quality 80, while copying them into the new folder. jhead is used to copy the EXIF data (lost by ImageMagick :() from the source files to the new ones. And finally I use exifautotran (which calls exiforient and jpegtran) to rotate the photo depending on the orientation of my camera when I took it, which means some of the final images are 960x1280, hence the folder named 1280x1280.

Then I upload them all to the site and let it work its magic. It keeps the 1280x1280 80% version as the highest quality, and resizes down to 640x640 80% (primary) and 128x128 ??% (thumbnail).

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sun, 2006-11-05 02:27

newer imagemagick versions don't lose the exif data. you need to specify -strip if you want to remove metadata.
thus the 2nd step shouldn't be necessary.