HH
2006-Jun-20 21:24 UTC
[Rails] file_column Trying to Create Thumbnails of Non-Image Files??
Howdy. We use the handy file_column plug-in in some of our apps. We have a model with a file field and we upload both images and non-images into this field. It is specified as follows: file_column :file_uri, :magick => {:versions => {:thumbnail => {:size => ''200x''}}} Well, it works great for images but for non-images, the save fails. The root cause is an ImageMagick error - it tries to create a thumbnail and of course, you can''t do that with a .doc or .zip and it croaks. I thought that file_column was smart enough to only create thumbnails for files that Rmagick/ImageMagick could support... It appears that older versions of file_column didn''t have this problem because we previously were able to add Word docs to our system. Anyone have any insight, especially those file_column hackers out there? Cheers, H