Open Owumaro opened 6 years ago
After investigation, I managed to make it work by manually setting a content_type on the file of the uploader:
> model.img.file.content_type = ""
=> ""
> model.img.recreate_versions!
=> [:store_versions!]
Edit: this only works if the image is still in the carrierwave cache. Otherwise you get a CarrierWave::ProcessingError: identify /tmp/mini_magick20171016-15060-1icpymt.png failed with error
.
Hi
I'm using carrierwave-ftp 0.3.1 (with carrierwave 1.2.1) to manage some image uploads with versions. I changed the processing of a version and need to reprocess all the existing images. So I'm trying to use
recreate_versions!
on the uploader: https://github.com/carrierwaveuploader/carrierwave#recreating-versionsIt throws a
NameError
:I found this wiki entry: https://github.com/carrierwaveuploader/carrierwave/wiki/How-to:-Recreate-and-reprocess-your-files-stored-on-fog Which explains that the base img must be cached to reprocess it. It seems like the carrierwave-ftp File class doesn't implement the required methods.
Calling
cache_stored_file!
on the uploader produces the same error as above.Thanks !