473,387 Members | 1,899 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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,

Expand|Select|Wrap|Line Numbers
  1. $ sudo apt-get install imagemagick
  2. $ sudo apt-get install graphicsmagick-libmagick-dev-compat
  3. $ sudo gem install rmagick
  4.  
  5. $ cd /tmp
  6. $ curl -OL ftp://ftp.imagemagick.org/pub/ImageM...eMagick.tar.gz
  7. tar -xzf ImageMagick.tar.gz
  8. cd ImageMagick-6.8.0-10/
  9. ./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
  10. $ make
  11. $ sudo make install
I was tried below command while putting development.rb file,
Paperclip.options[:command_path] = "/usr/local/bin/"

Please help me to solve this issue.
Dec 20 '12 #1
0 4122

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: dave | last post by:
Hello, I'm trying to get the below script working, adapted from the manual on php.net. Although i am getting success file uploading, i do not see the file in the tempoary area. And i'm not sure...
2
by: AMC | last post by:
Hi, I'm using a free component to upload image files to the web server. I'm getting this error when I try to upload SaveBinaryData error '800a0bbc' ...
4
by: steve | last post by:
Hi All When I set a buttons image to a image file in the properties window it seems to lock the file even if I clear the button image property in the properties window Sometimes I am editing...
0
Atli
by: Atli | last post by:
Hi. I'm trying to use php code I wrote last year when I was using Apache, so I'm pretty sure the code works. Its a simple code to upload an image and create a thumb of the image in another...
3
chunk1978
by: chunk1978 | last post by:
hi there... i have the following codes (HTML and PHP) on my Apache Localhost: HTML: titled "Form.html" <form enctype="multipart/form-data" action="uploader.php" method="POST"> <input...
5
chunk1978
by: chunk1978 | last post by:
hi there... i have the following codes (HTML and PHP) on my Apache Localhost: HTML: titled "Form.html" <form enctype="multipart/form-data" action="uploader.php" method="POST"> <input...
4
by: honey99 | last post by:
hi! can anybody give me some example code...for how to upload an image file in a JSP page and display that image in the same JSP without reloading/refreshing the page????plzzzzz help me..
0
by: =?Utf-8?B?U2NvdHQ=?= | last post by:
I have a page with four <input type=filecontrols on it. When i upload less than four meg across all four inputs, the files upload correctly. When i upload more than four meg, i get an error message...
2
by: Peter Oliphant | last post by:
The Image class allows loading a bitmap from a graphic file. So far I've gotten it to work with JPG and BMP files. What other graphic file formats are supported in this way? Is this fixed based...
4
rahulephp
by: rahulephp | last post by:
i think i am missing something in the below script: It shows error an do not upload files to destination: Let me know how to solve this: <?php if (isset($_POST)) { $uploadArray=...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.