4images Forum & Community

4images Issues / Ausgaben => Installation, Update & Configuration => Topic started by: widgit19812 on May 11, 2002, 03:21:26 PM

Title: ImageMagick
Post by: widgit19812 on May 11, 2002, 03:21:26 PM
Hi Guys

I managed to fully install 4images on our new server and for my luck ImageMagick was pre-installed. But when i type in the path and I try to go into the autothumbnailer section i get:

ImageMagick error. Wrong path or ImageMagick not installed.
Check module settings.

I checked through these boards I saw a few comments about permissions of the ImageMagick files what do they have to be set @ ?

Also my files are stored @ usr/local/bin/

With all files in that folder do i enter "usr/local/bin/convert" into the ImageMagick field in 4images?


Thanks in advance


Steve
Title: ImageMagick
Post by: Jan on May 11, 2002, 03:37:28 PM
Please ask your host about the correct path where ImageMagick is installed.

Greets Jan
Title: ImageMagick
Post by: widgit19812 on May 11, 2002, 03:40:18 PM
Hi

It is the correct path they told me it and I made sure by navigating through ftp.

Steve
Title: ImageMagick
Post by: Jan on May 11, 2002, 03:48:27 PM
Do you run a Linux or Windows server? If Windows, be sure that you enter "convert.exe" instead of "convert".
Be also sure that you entered "/usr/local/bin/convert". Starting with /.

Jan
Title: ImageMagick
Post by: widgit19812 on May 11, 2002, 04:03:36 PM
I am running a linux server.

I am using the /usr/local/bin/convert address


Thanks

Steve
Title: ImageMagick
Post by: giffy007 on May 11, 2002, 04:10:49 PM
Try this

/opt/ImageMagick-5.4.5/bin/convert

this worked for us , you need the version number this is ours , but try your own  :!:

Giffy :wink:
Title: ImageMagick
Post by: widgit19812 on May 11, 2002, 04:19:03 PM
No that dosnt work either :(


Steve
Title: ImageMagick
Post by: Jan on May 11, 2002, 06:04:07 PM
Ok, if you are REALLY sure that this is the right path, remove this code from the top of "admin/thumbnailer.php" and "admin/resizer.php" and try if it works.

Code: [Select]
if ($config['convert_tool'] == "im" && !is_executable($config['im_convert_path'])) {
  echo "<b class=\"marktext\">".$lang['im_error']."</b><br />\n";
  echo $lang['check_module_settings'];
  show_admin_footer();
  exit;
}


Jan
Title: ImageMagick
Post by: widgit19812 on May 11, 2002, 06:13:54 PM
Im gettibg the error now:

Warning: SAFE MODE Restriction in effect. The script whose uid is 553 is not allowed to access ./../data/media/36/blademasters01.jpg owned by uid 48 in /home/virtual/site50/fst/var/www/html/4images/admin/thumbnailer.php on line 182

Warning: getimagesize: Unable to open './../data/media/36/blademasters01.jpg' for reading. in /home/virtual/site50/fst/var/www/html/4images/admin/thumbnailer.php on line 182

Warning: SAFE MODE Restriction in effect. The script whose uid is 553 is not allowed to access ./../data/media/40/bruteforce02.jpg owned by uid 48 in /home/virtual/site50/fst/var/www/html/4images/admin/thumbnailer.php on line 182

Warning: getimagesize: Unable to open './../data/media/40/bruteforce02.jpg' for reading. in /home/virtual/site50/fst/var/www/html/4images/admin/thumbnailer.php on line 182
Title: ImageMagick
Post by: widgit19812 on May 11, 2002, 06:14:46 PM
Warning: SAFE MODE Restriction in effect. The script whose uid is 553 is not allowed to access ./../data/media/36/blademasters01.jpg owned by uid 48 in /home/virtual/site50/fst/var/www/html/4images/admin/thumbnailer.php on line 182

Id did that and got into the section but got:

Warning: getimagesize: Unable to open './../data/media/36/blademasters01.jpg' for reading. in /home/virtual/site50/fst/var/www/html/4images/admin/thumbnailer.php on line 182

Warning: SAFE MODE Restriction in effect. The script whose uid is 553 is not allowed to access ./../data/media/40/bruteforce02.jpg owned by uid 48 in /home/virtual/site50/fst/var/www/html/4images/admin/thumbnailer.php on line 182

Warning: getimagesize: Unable to open './../data/media/40/bruteforce02.jpg' for reading. in /home/virtual/site50/fst/var/www/html/4images/admin/thumbnailer.php on line 182
Title: ImageMagick
Post by: Jan on May 11, 2002, 06:33:42 PM
Ok, your PHP is running in Safe Mode. You can't use the Auto-Thumbnailer und the Auto-Resizer, sorry!

Jan
Title: ImageMagick
Post by: widgit19812 on May 11, 2002, 06:36:53 PM
Ok How do i get it off safe mode

Do i need to ask my host ?


Thanks


STeve
Title: ImageMagick
Post by: widgit19812 on May 11, 2002, 07:34:54 PM
Hi my host has diabled safe mode but now when i try to create thumbnails i get:

Create thumbnail for: a10-in-tunnel-bingomid (a10-in-tunnel-bingomid.jpg) ....  
   Error creating thumbnail!


Create thumbnail for: Blade (blademasters01.jpg) ....  
   Error creating thumbnail!


Create thumbnail for: Bruteforce (bruteforce02.jpg) ....  
   Error creating thumbnail!


Create thumbnail for: X-isle3 (x-isle04.jpg) ....  
   Error creating thumbnail!


Create thumbnail for: Dark3 (darksummit03.jpg) ....  
   Error creating thumbnail!


Create thumbnail for: Dommy (dom2.jpg) ....  
   Error creating thumbnail!


Create thumbnail for: Cello (celdamage04.jpg) ....  
   Error creating thumbnail!

Any ideas ?
Title: ImageMagick
Post by: widgit19812 on May 11, 2002, 07:37:55 PM
read above
Title: ImageMagick
Post by: Jan on May 11, 2002, 07:39:04 PM
Ok, i think the path to ImageMagick is not correct. Please re-check this!!!
It's all i can say about it...

Greets Jan
Title: ImageMagick
Post by: widgit19812 on May 11, 2002, 08:33:38 PM
Ive had a long chat with my host and they say its looks like a permissions problem.

What folder does it try to write the images to ( default )

Thanks


Steve
Title: ImageMagick
Post by: Jan on May 11, 2002, 09:25:27 PM
The folder "data" and all folders in it must have chmod 777.

Jan
Title: ImageMagick
Post by: Nicky on May 12, 2002, 10:59:26 PM
hi,

or maybe your convert tool is elsewhere ....

try in telnet / ssh

whereis convert
or
which convert
or
locate convert
Title: ImageMagick
Post by: widgit19812 on May 13, 2002, 10:47:42 AM
Hi All

I have racked my brains on this and spent a lot of time talking to my host he's reinstalled my ImageMagick 3 times. I have managed to get it sometimes to create thumbnails ( 1 in 100 ). Has anyone got any clue why this may be happening.

My host has assured me that all paths and installation is correct.


Thanks


Steve
Title: ImageMagick
Post by: Nicky on May 13, 2002, 10:56:07 AM
hi,

maybe is it the incorect installation of ImageMagick

they should try following
http://www.4homepages.de/forum/viewtopic.php?p=795#795
Title: Re: ImageMagick
Post by: JimmyGee on April 10, 2005, 06:18:33 PM
Ok, if you are REALLY sure that this is the right path, remove this code from the top of "admin/thumbnailer.php" and "admin/resizer.php" and try if it works.

Code: [Select]
if ($config['convert_tool'] == "im" && !is_executable($config['im_convert_path'])) {
  echo "<b class=\"marktext\">".$lang['im_error']."</b><br />\n";
  echo $lang['check_module_settings'];
  show_admin_footer();
  exit;
}

I had the same problem and yes ImageMagick does exist at the path I kept entering. On my last dedicated server I did not have to do this at all so i'm not sure on the cause but it seems to be server related or maybe a better imagemagick verifying routine can be coded :) Anyway to fix this problem in 4images 1.7.1 you have to do similar to what is mentioned above except you will find the code you need to delete in /includes/image_utils.php at around line 40. The code to delete is a little different to what Jan posted -
Code: [Select]
if (!@is_executable($convert_options['convert_path'])) {
      $convert_options['convert_error'] = "<b class=\"marktext\">".$lang['im_error']."</b><br />\n".$lang['check_module_settings'];
    }
Title: Re: ImageMagick
Post by: V@no on April 10, 2005, 07:47:48 PM
probably that's because your server is running on Windows system.
Title: Re: ImageMagick
Post by: JimmyGee on April 10, 2005, 10:55:47 PM
no it's a Fedora3 nix... my last dedicated server was redhat9.0 nix
I've got a feeling it's the fedora setup that caused my problems, imagemagick was a hassle to install, I had to compile source because the fedora imagemagick.rpm package failed to install properly.
Title: Re: ImageMagick
Post by: V@no on April 10, 2005, 11:09:01 PM
ah, ok, then my explanation would be the is_executable() function was disabled on your server...but why???
windows systems dont have that function by default.
Title: Re: ImageMagick
Post by: V@no on April 10, 2005, 11:13:00 PM
another alternative of removing something from the code is add this in includes/functions.php
Code: [Select]
if (!function_exists("is_executable"))
{
  function is_executable ()
  {
    return true;
  }
}
Title: Re: ImageMagick
Post by: JimmyGee on April 20, 2005, 05:10:49 PM
also coppermine does not have this trouble at all. It picked up ImageMagick by itself. Maybe you should check their code to see how the IM check is done properly.
Title: Re: ImageMagick
Post by: V@no on April 21, 2005, 12:40:36 AM
Copermine is probably only "guessing" the location. The default location of imagemagic files is in /usr/bin/ directory, but any hosts could install it anywhere they want.