My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
Modify  
Using Graphics Magick to bulk modify
Updated Mar 22, 2010 by scottaki...@gmail.com

If you are a python programmer you might be interested in some code here.

I wrote a small routine in python to go through the images to crop, rotate, and resize a list of images.

http://code.google.com/p/key-train/source/browse/photos/modify.py

Shows the following:

  • How to glob through files in a directory.
  • How to run gm with subprocess.call()

Note that the order you pass the parameters is important. If you crop then rotate, for instance, you'll see some white borders on your image.

Graphics Magick is a better version of Image Magick. It has no direct python support, but it's not necessary anyway, learning the command line way is the best and most of the time is spent converting the image and not in the time taken to load up the executable.

Powered by Google Project Hosting