I'm using Paperclip, ImagMagick, Rmagick, Amazon-s3
I'm getting this error when getting an image from url and after custom resizing image replacing the changed image to amazon.
Magick::ImageMagickError (no encode delegate for this image format //s3.amazonaws.com/beu-dev/temp_images/final_images/000/000/377/original/template_37720121205-5921-99989h.png' @ error/constitute.c/WriteImage/1153):
app/models/temp_image.rb:38:in
write'
line#38 is last line before end of this method
def reprocess_final_image
image_file_url = self.final_image.url(:original).split('?')[0]
thumb = Magick::Image.read(image_file_url).first
thumb.format = "PNG"
thumb.crop_resized!(240,200, Magick::NorthWestGravity)
**thumb.write(image_file_url)** ***Line#38***
end
Note: One more thing This code works perfectly when using system file system, but when started using amazon s3 Error happening