[magick-users] Square thumbnails

Noel da Costa noel.dacosta at magharl.co.uk
Wed Oct 17 09:50:51 PDT 2007


Hi John,

Thanks for the reply.
I'm performing a crop, rather than a change of proportion.

Here's the actual convert command being run:

convert -geometry 70x70 /assets/thumbnails/20.jpg  -background white - 
flatten -transparent white -thumbnail x140 -resize '140x<' -resize  
50% -gravity center -crop 70x70+0+0 +repage /assets/thumbnails/20.jpg


Thanks,
Noel



On 17 Oct 2007, at 18:25, Kent, Mr. John (Contractor) wrote:

> An amateur speaks,
>
> If your original images are not square,
> forcing them to become square will result in distortion.
>
> John Kent
> Webmaster
> NRL Monterey, CA
> http://www.nrlmry.navy.mil/sat_products.html
>
> -----Original Message-----
> From: magick-users-bounces at imagemagick.org
> [mailto:magick-users-bounces at imagemagick.org] On Behalf Of Noel da  
> Costa
> Sent: Wednesday, October 17, 2007 8:29 AM
> To: ImageMagick User List
> Subject: [magick-users] Square thumbnails
>
> Hi there,
>
> Looooove this library.. IM rocks!.. Having some trouble though:
>
>
> Problem:
> I seem to be getting "fuzzy" or out-of-focus thumbnails.
>
> I'm using the technique here:
> http://www.imagemagick.org/Usage/thumbnails/#cut
>
> Here's the code:
> <code>
> $default_option = "-thumbnail x".($params['square']*2)." -resize '".
> ($params['square']*2)."x<' -resize 50% -gravity center -crop ".$params
> ['square']."x".$params['square']."+0+0 +repage "; </code>
>
> This is done in PHP, so the please excuse the variables.
>
>
>
> Any ideas how to keep my thumbnails looking crisp?
>
>
>
>
> Thanks in advance,
>
>
>
> Noel da Costa
>
> Lead Developer
> Magnet Harlequin
>
> T: 01895 432400
> F: 01895 432444
> E: noel.dacosta at magharl.co.uk
> W: http://www.magharl.co.uk
>
> This e-mail is intended solely for the addressees named above and any
> other use is prohibited. Access to this email by anyone else is
> unauthorised. It may contain confidential information. If you have
> received this e- mail in error, please contact the sender by return
> e-mail. We do not accept legal responsibility for the contents of this
> message if it has reached you via the internet. Any opinions expressed
> are those of the author and are not necessarily endorsed by the  
> company.
> Recipients are advised to apply their own virus check to this message
> and all incoming e-mail on delivery.
>
>
>
> _______________________________________________
> Magick-users mailing list
> Magick-users at imagemagick.org
> http://studio.imagemagick.org/mailman/listinfo/magick-users



More information about the Magick-users mailing list