I am about to embark on reprocessing approx 100k user photos with new
dimensions that a site redesign has called for. We used AttachmentFu
and have stored the originals in case this ever came up. I don’t see
anything built directly in AttachmenFu and was planning to write some
rake tasks to do this myself, but figured it was worth a shot to find
out if anybody else had to do this and wanted to share any
pointers/code.
Thanks in advance!
Cheers,
Robby
–
Robby R.
Chief Evangelist, Partner
PLANET ARGON, LLC
design // development // hosting
I am about to embark on reprocessing approx 100k user photos with new
dimensions that a site redesign has called for. We used AttachmentFu
and have stored the originals in case this ever came up. I don’t see
anything built directly in AttachmenFu and was planning to write some
rake tasks to do this myself, but figured it was worth a shot to find
out if anybody else had to do this and wanted to share any
pointers/code.
We faced the same situation as you (though with fewer than 100K images,
I must say), and I wrote code to rehash all the existing images to the
new thumbnail sizes. You’ll find it at http://pastie.org/298645.
In our case, we were using S3 for image storage, and I had to insert the
sleep at line 12 to avoid freaking S3 out, but, if you’re using local
file storage, it shouldn’t be necessary.
So, now, I’m really happy to have the chance to pay you back
Awesome!
We faced the same situation as you (though with fewer than 100K images,
I must say), and I wrote code to rehash all the existing images to the
new thumbnail sizes. You’ll find it at http://pastie.org/298645.
In our case, we were using S3 for image storage, and I had to insert the
sleep at line 12 to avoid freaking S3 out, but, if you’re using local
file storage, it shouldn’t be necessary.
Hope that helps-
This works great. Just tested it out and it works perfectly. Now to
get ready to start reprocessing 100x x 7 variants… 700k photos!
Thanks again!
Cheers,
Robby
–
Robby R.
Chief Evangelist, Partner
PLANET ARGON, LLC
design // development // hosting