attachment_fu questions

  1. Is it possible to validate dimensions of uploaded photo, i want it to

accept only certain dimensions.

Don’t force a user to upload files with certain dimensions, scale the image yourself (see 2.)

  1. If i create for example :big_picture => ‘800x600’ and :thumb =>

‘150x150>’ is it possible to delete the source, big image.

Use :resize_to to resize the main image, this will “delete” the source image the user uploaded.

Best regards

Peter De Berdt

attachment_fu has callbacks to handle this kind of thing yourself, you’d have to look them up in the api. You could also use these to do a scale (so the image fills up the dimensions) and then crop to the exact size you’re looking for.

Best regards

Peter De Berdt