batch optimize jpegs with jpegtran

mkdir tmp
for %i in (*.jpg) do @jpegtran -copy none -optimize -perfect %i tmp\%i
cd tmp
for %i in (*.jpg) do @touch -r ..\%i %i
move /y *.jpg ..

commonly you can save up to 40% on image size without loose on quality.

This entry was posted in Uncategorized and tagged . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s