开发者

ImageMagick, passenger, rails, attachement_fu doesn't resize

开发者 https://www.devze.com 2023-01-05 10:55 出处:网络
So after a couple of months of development today I am finaly deploying! (WOOHOO great day). But i am stuck with a problem I can\'t seem to fix:

So after a couple of months of development today I am finaly deploying! (WOOHOO great day). But i am stuck with a problem I can't seem to fix:

First of all in development all is working perfectly. In deployment on my server it isn't though!. I use attachment_fu and i am able to upload pictures but the pictures are not resizing.

There is nothing in the production log or in de apache error lo开发者_StackOverflow中文版g. I am using ImageMagick with Mini_magick, Passenger and Attachement_fu. So I can upload (no problem) but for some reason the images don't resize! like i told attachement fu to do.

Also i read and Googled my ass off and found some thing about Apache export you need to add or something. But so far i don't know what to do at this point!

Thanxs in advance for any advise!


AFAIR Image Magick requires some native packages to be installed on the server. I guess libmagick6-dev or sth like that.

Try this, run Rails console on your production and type ImageMagick. If it has all the necessary dependencies you should see no error.

0

精彩评论

暂无评论...
验证码 换一张
取 消