Patrick, from within your model, you can access the file that was
uploaded. It is probably a temporary file on Heroku, but that's OK,
since you just need to parse something from it. Here is an example:
model Photo < ActiveRecord::Base
has_attached_file :avatar
before_save :process_exif
def process_exif
avatar.file # this is where you'd have access to the file
directly for processing
end
end
-Jordan
On Jun 8, 2010, at 10:44 AM, Patrick Crowley wrote:
Patrick, it might be easier to just parse the data yourself. I
think it is just an XML chunk in the image data...
Thanks, John. I've read about folks using ImageMagick output in the
same way.
But I haven't found any straightforward documentation on how to
accomplish this.
(Paperclip + S3 + locked file system on Heroku is complicating this
a bit).
-- Patrick
--
SD Ruby mailing list
[email protected]
http://groups.google.com/group/sdruby
---------------------------------------------------------------
Jordan A. Fowler
E-mail: [email protected]
Website: http://www.jordanfowler.com
Phone: (619) 339-6752
--
SD Ruby mailing list
[email protected]
http://groups.google.com/group/sdruby