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: Automatically detect imagemagick path, really?!  (Read 3995 times)

0 Members and 1 Guest are viewing this topic.

AvrilBoi

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 61
Automatically detect imagemagick path, really?!
« on: July 31, 2006, 08:11:16 pm »

My hosting provider does have imagemagick.
I asked them the path to it, and they told me:
"Many users use imagemagick but nobody ever asked us the paths.
Even asking our technical department and other users, they told us that the script shuold automatically detect or take automatically the server configurations.
Our technical department has tried to look for the path, but didn't manage to solve your request (they don't get any directory or folder to tell you).
Try asking some webmasters who already use it."

I don't really think that a script could detect it automatically, but I'm not sure so I'm here to ask you confirm about that: can a script detect the imagemagick path automatically?

Anyway, I tried a lot of combinations... usr/bin, urs/bin/convert and all the usual paths... but nothing, when I try to renew my old thumbnails using imagemagick there are errors.
I could use GD2, but I want to be confirmed about the automatic detection anyway.
« Last Edit: July 31, 2006, 10:27:44 pm by Nibbler »
Logged

Nibbler

  • Guest
Re: Automatically detect imagemagick path, really?!
« Reply #1 on: July 31, 2006, 08:18:25 pm »

It could, but not in a way that would work reliably and safely on different platforms.

IMHO if your host can't find the path to imagemagick then you should be looking for a more competent host.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Automatically detect imagemagick path, really?!
« Reply #2 on: July 31, 2006, 08:46:12 pm »

Use GD2, it won't make a big difference anyway.
Logged

AvrilBoi

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 61
Re: Automatically detect imagemagick path, really?!
« Reply #3 on: July 31, 2006, 08:46:29 pm »

Do you know any script that could help me finding the path?
Logged

Nibbler

  • Guest
Re: Automatically detect imagemagick path, really?!
« Reply #4 on: July 31, 2006, 09:56:17 pm »

Code: [Select]
<?php

passthru
('which convert');
Logged

AvrilBoi

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 61
Re: Automatically detect imagemagick path, really?!
« Reply #5 on: July 31, 2006, 10:13:29 pm »

Code: [Select]
<?php

passthru
('which convert');
I get /usr/bin/convert... but when i put this in coppermine, the thumbnail generation doesn't work... is it a problem of the hosting now right?
Logged

Nibbler

  • Guest
Re: Automatically detect imagemagick path, really?!
« Reply #6 on: July 31, 2006, 10:21:06 pm »

If convert is at /usr/bin/convert then the path to it is /usr/bin/ If you need upload support then make a new thread.
Logged

AvrilBoi

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 61
Re: Automatically detect imagemagick path, really?!
« Reply #7 on: July 31, 2006, 10:24:35 pm »

I have tried with usr/bin 5 minutes ago, and it didn't work. Now, without making changes in the configuration panel... it works! => I think they've done something to the server and now it works...
Logged

Nibbler

  • Guest
Re: Automatically detect imagemagick path, really?!
« Reply #8 on: July 31, 2006, 10:27:18 pm »

I notice you keep leaving off the / at the start of your paths. I don't know if you put them into config like that or not but the leading slash is vital.
Logged

AvrilBoi

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 61
Re: Automatically detect imagemagick path, really?!
« Reply #9 on: July 31, 2006, 10:45:17 pm »

No, I put it, I just didn't put it here to make the post "shorter"... but in the configuration everything is OK. ;)
Logged
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 19 queries.