I'm using the gem gem 'rmagick', '3.1.0'
and i am trying to upload a PDF, convert each pages to a jpg and ship the jpgs off to S3. It is currently working on my local environment and my staging server, but not working on my production server. I can't tell right now that anything is different between my staging and production servers.
The code being called:
images = Magick::Image.from_blob(params[:set_list_item][:attachment].read)
The error i'm receiving:
Magick::ImageMagickError not authorized `/tmp/magick-o0O927WR' @ error/constitute.c/ReadImage/454
Any help or insight is greatly appreciated. I have tried some of the suggestions by changing the policies for imagemagick to read|write
for PDF and HTTPS but that didn't solve the issue.