Attachment_fu reprocess thumbnails help

hello guys

i am using attachment_fu for product images
i have hundreds of products and their images
with thumbnails :thumbnails => { :thumb => ‘100x100>’ }

now we have decided to have thumbnails of size 50x50> only.

how do i destroy the existing thumbnails for images
and regenerate the new thumbnails

i shud be doing something like this

product_images.find(:all)
for each prod image
destroy the thumnnail. —what method
create new thumbnail —what method
end

pls help

jags

Jags R. wrote:

hello guys

i am using attachment_fu for product images
i have hundreds of products and their images
with thumbnails :thumbnails => { :thumb => ‘100x100>’ }

now we have decided to have thumbnails of size 50x50> only.

how do i destroy the existing thumbnails for images
and regenerate the new thumbnails

product_images.find(:all)
for each prod image
destroy the thumnnail. —what method
create new thumbnail —what method
end

looks like substruct did something somewhat similar once:
http://code.google.com/p/substruct/source/browse/trunk/plugins/substruct/db/migrate/025_user_upload_switch_to_attachment_fu.rb

creates a few on the fly