Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Imagemagick rename in "Convert"  (Read 8390 times)

0 Members and 1 Guest are viewing this topic.

McKenzie

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 129
    • My car gallery
Imagemagick rename in "Convert"
« on: September 11, 2008, 08:46:48 pm »

The program is actually called "convert", not imagemagick at my provider, so I get always an error (Unknown Error) at uploading when I use the "Imagemagick"-Setting. Where must I rename it into "Convert"? The path is right, so the problem should be the "wrong" name.
Logged

Nibbler

  • Guest
Re: Imagemagick rename in "Convert"
« Reply #1 on: September 11, 2008, 08:52:12 pm »

You just need to enter the correct path in config. It's called 'convert' for everyone, you don't need to rename anything. Convert is just one of a number of programs that make up ImageMagick.
Logged

McKenzie

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 129
    • My car gallery
Re: Imagemagick rename in "Convert"
« Reply #2 on: September 11, 2008, 08:56:29 pm »

I enter the correct path (I also ask at the support desk and they told it also). But it doen't work.  ???
Logged

Nibbler

  • Guest
Re: Imagemagick rename in "Convert"
« Reply #3 on: September 11, 2008, 09:23:05 pm »

Look at the example that's provided; you just enter the path without 'convert', so just "/usr/bin/".
Logged

McKenzie

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 129
    • My car gallery
Re: Imagemagick rename in "Convert"
« Reply #4 on: September 11, 2008, 09:33:36 pm »

I done that, it works but the filesize/quality etc. are the same as in GD2, so how can that be?.  How can I make sure, that I use IM and not GD2?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Imagemagick rename in "Convert"
« Reply #5 on: September 12, 2008, 09:21:18 am »

Well, nobody said that ImageMagick would produce superior quality (compared to GD2). After all, you're using jpeg, a lossy format. Every re-calculation of an image comes with a certain loss of quality. That is particularly the case for jpeg files. The difference between ImageMagick and GD mainly lie in the number of image file types that it supports: ImageMagick can cope with a number of files that GD can't cope with. However, those image file types are nearly irrelevant on web pages. Both GD2 as well as ImageMagick can cope with jpeg, png and gif, which are the most important image file types on the internet. The additional file types that ImageMagick can cope with (like tif or bmp) result in much bigger file sizes, so they usually are not an option on the web.
If the quality of resized images really bothers you, then resize the pics on your client before uploading them in the first place. However, as your site is community-based I can see that this is not an option for you.
What you might want to look into is the fact that you can specify additional command line parameters for ImageMagick - maybe you can find parameters that will increase image quality slightly. I must confess though that I don't have much experience with ImageMagick's command line parameters.
Logged

eruss

  • Supporter
  • Coppermine frequent poster
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 105
Re: Imagemagick rename in "Convert"
« Reply #6 on: November 06, 2008, 06:13:24 am »

I had this problem after upgrading to PHP 5.2.6 and ImageMagick 6.4.2.1.  My path was set correctly but the thumbnails would not create.  I had to edit php.ini for my site as follows:

Find:
Code: [Select]
disable_functions = exec,passthru,popen,proc_open,shell_exec,system

Change to:
Code: [Select]
disable_functions = passthru,popen,proc_open,shell_exec,system

The path for ImageMagic on my server is /usr/local/bin/ but I have also seen /usr/bin/

This may be unique to my host so your YMMV.  After the edit, it works again.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Imagemagick rename in "Convert"
« Reply #7 on: November 06, 2008, 08:27:04 am »

Thanks for posting your remarks. The convert executable of ImageMagick is being called from within PHP using the exec command. Of course you can only use ImageMagick on your webserver if the exec command hasn't been disabled. However, most users on shared webhosting can not change the section you refered to in php.ini, as it can be abused for many silly things as well, so there is a good reason why most webhosts disallow it in the first place.
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 20 queries.