Closed mankind closed 5 years ago
For my case, it is because of not installed ImageMagick, for you case, I think you need to install MiniMagick in your OS system.
Be aware that store_dir
is relative path, you must give absolute path to MiniMagick.
I am trying to upload a pdf file and then convert it to jpeg image where each page of the pdf file will be saved as an individual jpeg file.
The problem is that the jpeg images are written to the wrong folder . Instead of writing the images to the usual path where carrierwave store files locally that Rails public folder, it is writing the converted pdf files to the Rails root just underneath the gemfile.
I have tried out the 2 commented out lines in my code and it still saves to the wrong folder path.