[magick-users] RE: Best Way To Take An Image Of Any Ratio and Make
A Square Out Of It (1:1)
Fred Weinhaus
fmw at alink.net
Wed Jan 23 12:49:27 PST 2008
I just wrote a bash script to do something like this. See squareup
script at http://www.fmwconcepts.com/imagemagick/index.html
> >Hey guys and gals,
> >This is what I am doing now to take an image of any ratio and make a 60x60
> >thumbnail out of it.
> >
> > > convert -size 240x240 test.jpg -thumbnail x120 -resize '120x<'
>-resize 50%
> >-gravity center -crop 60x60+0+0 +repage test_60x60.jpg
> >
> >I was wondering if their was a much simpler way of doing this?
> >
> >Thanks :-)
> >
> >--
> >John Kopanas
> >john at kopanas.com
More information about the Magick-users
mailing list