问题
I followed this guide to use paperclip http://railscasts.com/episodes/134-paperclip?language=en&view=asciicast it is all ok but note that to enable resizing you’ll need to have ImageMagick installed on your server.
So how should i install ImageMagick ?? i have WINDOWS 8 and on the site http://www.imagemagick.org/ download does not work!!!!
回答1:
It certainly works - you need to make sure of 2 things:
- You install the correct static version for your OS (32-bit vs 64-bit). The 32-bit (x86) will work regardless, the 64-bit (x64) will only work on a 64-bit system. And you need to download the static version - not the
-dll
version - as Paperclip needs to call the executable directly. (Of course, I'm sure that you knew that downloading the installer file isn't going to install it for you, right? That is, you need to open the file to start the installation...) - You add the bin directory to your environment path. The installer should do this for you, unless you unchecked that option.
UPDATE
Just noticed that the links are broken :) They still point to the older 6.8.5-6 version that have since been moved to legacy. You can get the latest binaries from here.
来源:https://stackoverflow.com/questions/16655831/install-imagemagick-for-paperclip-gem-in-windows