Image file upload error: 'image' is not recognized by the 'identify' command

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ShruthiR
    New Member
    • Dec 2012
    • 1

    Image file upload error: 'image' is not recognized by the 'identify' command

    I am using ubuntu 10.10. In my rails 3.1 project, i am not able to upload any type of image files. While uploading an image file it shows an validation error like

    /tmp/image1.jpg is not recognized by the 'identify' command.

    My ruby version is,
    ruby 1.9.3p327

    I have installed both ImageMagick & rmagick gem & some other libdev tools. Now my rmagick gem is
    rmagick (2.13.1)
    & my cocaine gem is
    cocaine (0.4.2, 0.2.1)

    Also i have done following things,

    Code:
    $ sudo apt-get install imagemagick
    $ sudo apt-get install graphicsmagick-libmagick-dev-compat
    $ sudo gem install rmagick
    
    $ cd /tmp
    $ curl -OL [url]ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick.tar.gz[/url]
    tar -xzf ImageMagick.tar.gz
    cd ImageMagick-6.8.0-10/
    ./configure --prefix=/usr/local --disable-static --with-modules --without-perl --         without-magick-plus-plus --with-quantum-depth=8 --disable-openmp --with-gs-font-dir=/usr/local/share/ghostscript/fonts
    $ make
    $ sudo make install
    I was tried below command while putting development.rb file,
    Paperclip.optio ns[:command_path] = "/usr/local/bin/"

    Please help me to solve this issue.
    Last edited by Rabbit; Dec 20 '12, 06:04 PM. Reason: Please use code tags when posting code.
Working...