#8 new
labrat

[PATCH] make a center gravity thumb if :thumbnail option is an Array of Fixnums with equal value

Reported by labrat | July 28th, 2007 @ 08:00 AM

The question of creating a properly cropped & centered thumbnail comes up fairly often enough (especially among newbies for some reason) rather than a squished thumbnail.

I thought it would be reasonable to assume that if someone defines square dimensions for their thumbnails (ie :thumbnails => { :profile => [150, 150], :medium => [80,80], :tiny => [25,25] } )that they would rather have a Flickr-like cropped image.

http://toolmantim.com/article/20...

http://pastie.caboo.se/58467

As a side benefit it might get us newbs off your back.

Comments and changes to this ticket

  • bitbutter

    bitbutter July 28th, 2007 @ 08:00 AM

    I would really appreciate this being added to attachment_fu. It's currently quite fiddly to create square, cropped thumbnails.

  • labrat

    labrat October 18th, 2007 @ 08:36 PM

    • Title changed from “use crop_resized! if :thumbnail option is an Array of Fixnums with equal value” to “[PATCH] make a center gravity thumb if :thumbnail option is an Array of Fixnums with equal value”

    doesn't break anything.

  • ---

    --- August 1st, 2008 @ 06:35 AM

    • Tag set to attachment_fu, bug

    Why this still doesn't work?

    This feature is great, who needs streched/deformed picture for thumbnail if it's a square?!

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

People watching this ticket

Pages