Why exactly does paperclip execute convert when a File is assigned to the attachment instead of doing all that heavy work when save is called.
This seems like it's bad:
ar_obj.attachment = File.open('...')
#copy file to /tmp
#styles.length.times do { identify & convert }
ar_obj.save
# copy original & thumbnails in place.
I'm not sure this makes much sense at all. Why try to convert an unvalidated attachment?
For example: try attaching a 10G image - it takes FOREVER to complete even if you have a validation on size (say <5MB) because the 10G image is still re-processed into each style that you have. It isn't until save is called that the error gets added.
There must be a good reason for this, please enlighten me.