# Attachment\_Fu : how to remove thumbnails only and regenerate

**URL:** <https://www.ruby-forum.com/t/attachment-fu-how-to-remove-thumbnails-only-and-regenerate/137145>\
**Category:** Rails\
**Created:** [May 9, 2008, 11:49am UTC](https://www.ruby-forum.com/t/attachment-fu-how-to-remove-thumbnails-only-and-regenerate/137145 "2008-05-09T11:49:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jags](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/dc4da7/32.png) [@jags](https://www.ruby-forum.com/u/jags)\
**Post date:** [May 9, 2008, 11:49am UTC](https://www.ruby-forum.com/t/attachment-fu-how-to-remove-thumbnails-only-and-regenerate/137145/1 "2008-05-09T11:49:55Z")

</div>

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 from existing images for products —what method  
end

pls help

jags
