mapseed/platform

optimize icon images

Closed this issue · 1 comments

Resize with this script - http://ix.io/nW7

Save that under a file name, ie resize-pics.sh. Then make sure the file is executable: chmod +x resize-pics.sh then run it ./resize-pics.sh ...

move to duwamish flavor

Also, that script isn't the best. I think I coded that in a pinch, (source is here). But you can resize all pics like so:

./resize-pics.sh "*.png" 128

which will resize all pictures with a .png extension to have a scaled width of 128 pixels.

If you have the ImageMagick library installed, there is a command called mogrify, which can be run like this:

mogrify -verbose -resize '128x128>' *.png

which resizes all files with the .png extension to 128x128 pixels. Here is a post that describes the mogrify tool.

Note that these commands and libraries only apply to Linux/Mac systems.