ImageMagick installed in my server, but its no working :(

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
bil80

ImageMagick installed in my server, but its no working :(

Post by bil80 »

Hello,

I installed ImageMagick on my dedicated server linux, I have a script that make transitions between images in a video, but it is not working.

Someone could help me, i can not find the error... :/

Thank you.
bil80

Re: ImageMagick installed in my server, but its no working :(

Post by bil80 »

Any help please ??

i habe this error message : no decode delegate for this image format jpeg

I use ImageMagick ImageMagick-6.3.9 in Fedora core6 linux

:? :? :(
Last edited by bil80 on 2008-03-08T05:44:24-07:00, edited 1 time in total.
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: ImageMagick installed in my server, but its no working :(

Post by Bonzo »

Post your code as people can not help if they can not see what you are trying to use.

Have you tried anything else like a simple image resize to see if the installation is working ok ?
bil80

Re: ImageMagick installed in my server, but its no working :(

Post by bil80 »

Bonzo wrote:Post your code as people can not help if they can not see what you are trying to use.

Have you tried anything else like a simple image resize to see if the installation is working ok ?
i did this test :

convert logo: logo.jpg
identify logo.jpg

Error message : no decode delegate fot this image format 'logo.jpg'

It works for gif format, and it not also for PNG. :/

identify -list configure :

CC gcc
CFLAGS -g -O2 -Wall -W -pthread
CONFIGURE ./configure
COPYRIGHT Copyright (C) 1999-2008 ImageMagick Studio LLC
CPPFLAGS -I/usr/local/include/ImageMagick
CXX g++
CXXFLAGS -g -O2 -Wall -W -pthread
DEFS -DHAVE_CONFIG_H
DELEGATES
DISTCHECK_CONFIG_FLAGS --disable-deprecate --with-quantum-depth=16 --with-djvu=no --with-umem=no --with-fontpath= --with-fontconfig=no --with-lqr=no --with-rsvg=no --with-xml=no
EXEC-PREFIX /usr/local
HOST x86_64-unknown-linux-gnu
LDFLAGS -L/usr/local/lib
LIB_VERSION 0x639
LIB_VERSION_NUMBER 6,3,9,1
LIBS -lMagickCore -lm -lpthread
NAME ImageMagick
PCFLAGS
PREFIX /usr/local
QuantumDepth 16
RELEASE_DATE 03/06/08
VERSION 6.3.9
WEBSITE http://www.imagemagick.org

Thank you for your help
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: ImageMagick installed in my server, but its no working :(

Post by Bonzo »

I no very little about Linux but try running this:

Code: Select all

convert -list Format
Supported formats should have an r for read and a w for write next to them. If the format is completly missing you have problem.

I have for png ( on my windows XP PC ):
PJPEG* JPEG rw- Progessive Joint Photographic Experts Group JFIF
PLASMA* PLASMA r-- Plasma fractal image
PNG* PNG rw- Portable Network Graphics (libpng 1.2.18)
See http://www.libpng.org/ for details about the PNG format.
PNG24* PNG rw- opaque 24-bit RGB (zlib 1.2.3)
PNG32* PNG rw- opaque or transparent 32-bit RGBA
PNG8* PNG rw- 8-bit indexed with optional binary transparency

PNM* PNM rw+ Portable anymap

and this for jpg ( on my windows XP PC ):
JP2* JP2 rw- JPEG-2000 File Format Syntax
JPC* JPC rw- JPEG-2000 Code Stream Syntax
JPEG* JPEG rw- Joint Photographic Experts Group JFIF format (62)
JPG* JPEG rw- Joint Photographic Experts Group JFIF format

JPX* JPX rw- JPEG-2000 File Format Syntax
K* RAW rw+ Raw black samples

I assume if you do not have something similar there was a problem on the install.
bil80

Re: ImageMagick installed in my server, but its no working :(

Post by bil80 »

Thank you very much! I downloaded the librayry and it works very well now!

I have another problem :/

When I issue the command to convert the photo convert 70.jpg-line interlace-quality 70 image.png it works very well, but when I do on the script for my site it is not working:/

ImageMagick it is installed on the directory /usr/local/bin or /usr/bin, how do you know please ? :? :?

Thanks
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: ImageMagick installed in my server, but its no working :(

Post by Bonzo »

Are you using php ? If you are give this a go ( it should display some errors if there are any ):

Code: Select all

<?php
$array=array();
echo "<pre>";
exec("/usr/local/bin/convert 70.jpg -line interlace-quality 70 image.png 2>&1", $array); 
echo "<br>".print_r($array)."<br>"; 
echo "</pre>";
?>  
Some servers will work with just convert others need /usr/local/bin/convert

Loads of php info on my website 8)
bil80

Re: ImageMagick installed in my server, but its no working :(

Post by bil80 »

I solved the problem! Thank you very much!

The script has not worked with /usr/local/bin/, but directly with exec ( "convert 70.jpg -line interlace-quality...

My site is working well now ... http://www.imagetovideo.com

Thank you very much Bonzo :) !
Post Reply