• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 265
  • Last Modified:

Image::Magick

Hi,

 This has reference to a locked question dt.2/22 "Resize images" by mmcw.
 An example of Image::Magick script was given by guadalupe :

  use Image::Magick;
  $p = new Image::Magick;
  $p->Read("imagefile");
  $p->Set(size=>'70x70');  
  $p->Write("filename");

I had tried using Image::Magick, but my error log showed this warning:

" Warning 320: no delegate for this image format () [No such file or directory]"

What does that mean?

0
leoleo
Asked:
leoleo
  • 6
  • 5
  • 2
  • +2
1 Solution
 
guadalupeCommented:
Did you change the line:


  $p->Read("imagefile");

To provide a real image file...
Like this for example:


  $p->Read("/home/user/image.gif");
0
 
leoleoAuthor Commented:

Yes, I did.

And in the documentation for Image Magick I found something abt Delegates which I didn't follow clearly.
0
 
guadalupeCommented:
What image format are you trying to edit...?
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
leoleoAuthor Commented:

GIF & JPG.
0
 
guadalupeCommented:
Ok I belive the problem is that you may not have Image Magic correctly installed...  I had mentioned in my other answer that we might be able to get away with not intalling but I had forgottem about Image Magic...  Do you have it installed...  You can get it here

http://www.wizards.dupont.com/cristy/ImageMagick.html
0
 
leoleoAuthor Commented:

Yes, it is installed, and from the same site.

Otherwise it won't let me use
"use Image::Magick;" will it?

The problem comes at the Read () statement or the statement

$p = Image::Magick->new;
0
 
guadalupeCommented:
No, I think we have a confusuion of terms.  While the statement is

use Image::Magick

The actual package's name is Perl::Magick... This is to distinguish it from its C counterpart  Image Magick.  The thing is that the perl Mod is actually nothing more than an interface to this c library.  If you do have this c library installed then I am a bit confussed... Let me knopw and well try to work it out...  
0
 
leoleoAuthor Commented:

I think Perl Magick is installed, but I am not sure now. How do I check that?
0
 
guadalupeCommented:
To check if Perl Magick is installed try running from the command line a perl program which says

use Image::Magick;

It will tell you if the module exists in the include dirs after that we kinda have to assume that it has been correctly installed.

However the problem is you also have to see if Image Magick, the C library, is installed...  the easiest is to go to the url below and download the package which applies to you and thn install it...

http://www.wizards.dupont.com/cristy/ImageMagick.html

Lety me know how it goes...?
0
 
leoleoAuthor Commented:

Yes, both are installed.
0
 
daveceeCommented:
Hi Leo,

 The problem "No delegate is installed for this file format" when trying to load a GIF file means that when ImageMagick was configured and compiled you did not specify the configure flag "enable-lzw" that enables GIF support.

 You need to reinstall ImageMagick with the "-enable-lzw" flag. You also need to use the "-enabled-shared" flag if you want to keep using the standard Perl executable, otherwise it builds a new "perlmagick" executable.

 So, it's:

 configure -enable-lzw -enable-shared

 and then

 make
 make install

0
 
lambdaCommented:
Thanks! I'll sure try that.
And let you know.
0
 
lambdaCommented:
sorry, got posted in the wrong window!!!
0
 
leoleoAuthor Commented:
I was away, and didn't see ur proposed answer till now. And the other day EE site seemed to be having some problems... Anyway I had stopped working on Image Magick, so I can't tell you whether the proposed soln  works or not. (This is an ancient question, as you can see.)

Well, I will award points to davecee, and post another question for guadalupe with the same points.

I may work on Image Magick soon, then I will try as you suggested and if there are any more problems, I will get back to you. I'd appreciate it very much if both of you would keep ur email notification for this question on.

Thanks a lot.
0
 
darinwCommented:
Reviewing question.

darinw
Customer Service
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 6
  • 5
  • 2
  • +2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now