Categorized: Rails

Things I want to do with file_column (or something else)

  1. Rename the image file (perhaps using the ID of the item it belongs to)
  2. Convert the image to a standard format (JPEG)
  3. Add a watermark

Are these things possible with file_column or acts_as_attachment?

Comments

Jim Kane → October 6th, 2006 at 8:24 am

You should be able to implement at least #s 2 and 3 with the before_foo callbacks (I’m thinking before_save). #1 might be the same thing.

Beau → November 15th, 2006 at 6:03 pm

It should be possible, check out this page

I think you can use the :transformation option to do all the extra image manipulation you want.

What do you think about that?

Elsewhere in the empire: Home, Blog, APOD