Posts [ 6 ]

Topic: crop_resized with acts_as_attachment

I am uploading an image using acts_as_attachment. Acts_as_attachment supports resizing using RMagick, but in this case I need to not only resize an uploaded image, but also to make sure that the aspect ratio matches some predetermined dimensions. I believe that the best way to do this is by employing RMagick's crop_resized method. Is it possible to call this method using acts_as_attachment?

I thought about how mothers feed their babies with tiny little spoons and forks, so I wondered what do Chinese mothers use. Toothpicks?

Re: crop_resized with acts_as_attachment

As far as I can tell acts_as_attachment doesn't give any interface for specifying precisely how RMagick handle's the file. If anybody else wants to see if they can find something I missed, the code's here: