Imagemagick

28 Mar

Renaming multiple images

Published by simon

Some shell magic to rename all files within a directory.

for JPG in `find /path -type f -name \*.JPG` ; do mv $JPG ${JPG/JPG/jpg} ; done

Thanks to:

http://www.unix.com/shell-programming-scripting/135178-rename-all-jpg-fi...

Topics 

Imagemagick, Graphics
21 May

Wallpaper scaling

Published by simon

I had a whole bunch of wallpapers lying around, but they were all different sizes, which really looks screwy on a dual screen setup.

The attached perl script reads through all images in $HOME/Pictures.original/ and creates new copies in $HOME/Pictures/ as the specified image size in the file.

By setting the image size to exactly the size of one of the dual screen monitors (this assumes identical resolutions on both screens), and running the script, the backgrounds then work nicely.

Topics 

Linux, Perl, Imagemagick
Attachments: