Skip to content

Instantly share code, notes, and snippets.

@tmeits
Forked from rahim/reduce-jpgs-to-500px.sh
Created November 11, 2011 04:09
Show Gist options
  • Select an option

  • Save tmeits/1357169 to your computer and use it in GitHub Desktop.

Select an option

Save tmeits/1357169 to your computer and use it in GitHub Desktop.
Reduce all JPEGs in folder to 500px wide and 75% quality using ImageMagick's mogrify
#!/bin/bash
mogrify -strip -type optimize -filter Cubic -resize 500x -quality 75% *.jpg
@tmeits
Copy link
Author

tmeits commented Nov 15, 2011

On most modern Unix-likes you can use ImageMagick:

mogrify -filter Cubic -resize 600x -unsharp 2.0x0.75+0.5+0.0 -quality 85 -format jpg +profile "" ./.jpg

I'm sure Irfanview or one of its ilk will let you do it somehow as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment