#12 resize on smallest side

closed
None
5
2010-06-19
2010-06-19
Anonymous
No

this would be very useful, and would match equivalent functionality in imagemagick (the ^ in geometry)

convert orig.png -resize '400^' -gravity center -crop '400x400+0+0' +repage out.jpg

that's what I use to create square thumbnails. I can't express the same thing in GM.

Discussion

    • assigned_to: nobody --> bfriesen
    • status: open --> closed
     
  • What version of GraphicsMagick are you using? The '^' syntax is already supported in the current releases (for over a year now). While it is true that +repage is not supported, the previously existing +page should work just fine.