%o = option %f = filename %g = geometry convert %o %g %f %f-.jpg OPTION and GEOMETRY -rotate [90,180,270] -crop wxh+X+Y -resize x100 (height = 100)