How to save cropped image of an image URL without saving the original image? (in Rails using Paperclip or other plug-ins) -
hi all
have app showing photos url, not own database (file system). example, photo facebook:
http://sphotos.ak.fbcdn.net/hphotos-ak-snc1/hs085.snc1/5041_98423808305_40796308305_1960517_6704612_n.jpg
i've added crop function cropping area (x,y,w,h) of photo.
, i'd save cropped image from url (i.e. without downloading original image database before cropping)
is possible?
or there anyway image memory process without saving database?
i've searched questions here, talk how save crop of images have been uploaded database users.
thank in advance.
how imagine cropping works without access original image? process this:
- download remote image /tmp temporary file (tip:
tempfile) - crop crap out of it
- save cropped image paperclip db
- remove temporary file
Comments
Post a Comment