PEAK XOOPS - Problem using ImageMagick in englishin japanese

Problem using ImageMagick

  • You cannot open a new topic into this forum
  • Guests cannot post into this forum
Previous post - Next post | Parent - Children.1 | Posted on 2003/11/7 10:06
rider  ÆóÅùʼ   Posts: 4
I have my path to ImageMagick set to:

/usr/X11R6/bin

but MyAlbum-P doesn't see it.

I have a theory that maybe it is trying to treat it as the root of website as opposed to the UNIX path

i.e.

http://rider.net.nz/usr/X11R6/bin

instead of

/usr/X11R6/bin

If this is the case, then how on earth do you force it to use the UNIX path?

I've tried making the path

//usr/X11R6/bin

but this did not work.

Anyone got any ideas?
Votes:2 Average:5.00
Previous post - Next post | Parent - Children.1 | Posted on 2003/11/9 7:58
GIJOE  ÀèǤ·³Áâ   Posts: 4110
hi rider.

I don't know your environment of the server working XOOPS.

If you install ImageMagick into the Unix server,
you can know the path like this command:

$ which mogrify

If you install ImageMagick another server from the server working XOOPS,
I don't know the way. Perhaps you can't use.
Votes:0 Average:0.00
Previous post - Next post | Parent - Children.1 | Posted on 2003/11/10 5:30
rider  ÆóÅùʼ   Posts: 4
ImageMagick is installed on the same server as my site but I'm unsure of the command you gave.

Quote:
$ which mogrify

Is this done from command prompt or from PHP?

If the former I'm not able to do this as the server is not mine and I don't have access to SSH or CLI to that machine.

I have asked the site hosts where it is installed and they are saying that it is installed in /usr/X11R6/bin and this is the path that I have entered into the prefs of MyAlbum-P.

I'm really not sure what is going on here because everything seems to be okay in terms of prefs and I've been assured that I do have access to /usr/X11R6/bin/convert so I can't work it out.

It's a shame because ImageMagick makes good thumbnails but GD's are far from perfect.

The only other option is a copy of the original but then that increases loading times.
Votes:0 Average:0.00
Previous post - Next post | Parent - Children.1 | Posted on 2003/11/10 7:19
GIJOE  ÀèǤ·³Áâ   Posts: 4110
What I showed you is a shell command.

If you don't have access to ssh,
you can create php script like this:
<?php
  system("which mogrify");
?>
upload this into your server, and access it.

If this shows /usr/local/bin/mogrify then your path is /usr/local/bin.
Votes:0 Average:0.00
Previous post - Next post | Parent - Children.1 | Posted on 2003/11/11 8:48
rider  ÆóÅùʼ   Posts: 4
I tried this but nothing actually showed up.

Just got a blank page.

Checked permissions et al and they seem fine.

Does this mean there is something missing from their system?
Votes:0 Average:0.00
Previous post - Next post | Parent - Children.1 | Posted on 2003/11/13 5:43
GIJOE  ÀèǤ·³Áâ   Posts: 4110
Ok.
You can try this.
<?php
   system('find / -name mogrify');
?>
Votes:0 Average:0.00

normal Re: Problem using ImageMagick

msg# 1.1.1.1.1.1.1
Previous post - Next post | Parent - Children.1 | Posted on 2003/11/13 9:15
rider  ÆóÅùʼ   Posts: 4
That showed something in fact it showed:

/usr/X11R6/bin/mogrify

So I thought I'd change mogrify to convert and it showed this:

/usr/X11R6/bin/convert

But MyAlbum_P still shows an error when you check the configs.

The error is:

Use ImageMagick: yes
Path: /usr/X11R6/bin/convert
Error

Is the path meant to be:

/usr/X11R6/bin/convert

or:

/usr/X11R6/bin

Either of which do not work.
Votes:0 Average:0.00

normal Re: Problem using ImageMagick

msg# 1.1.1.1.1.1.1.1
Previous post - Next post | Parent - Children.1 | Posted on 2003/11/13 17:08
GIJOE  ÀèǤ·³Áâ   Posts: 4110
Probably the permission of convert is set wrong type.
Try
<?php
system("ls -la /usr/X11R6/bin");
?>

Another capablity, php version problem.
Write here which version do you use.
Votes:0 Average:0.00

normal Re: Problem using ImageMagick

msg# 1.1.1.1.1.1.1.1.1
Previous post - Next post | Parent - Children.1 | Posted on 2003/11/15 20:33
jobiwan  ÆóÅùʼ   Posts: 4
Have exactly the same problem.

Config Check
Use ImageMagick: yes
Path: /usr/X11R6/bin/mogrify
or
Path: /usr/X11R6/bin
Error

Host advises that others are using the "convert" function with no problems and that "mogrify" is installed.

Shows up the correct folder shown using your second script and tI get the following output from your last script:

total 480
drwxr-xr-x 2 root root 4096 Jun 6 14:21 .
drwxr-xr-x 8 root root 4096 Jun 6 14:21 ..
-rwxr-xr-x 1 root root 1318 Jan 9 2001 Magick++-config
-rwxr-xr-x 1 root root 1349 Jan 9 2001 Magick-config
-rwxr-xr-x 1 root root 17108 Jan 9 2001 animate
-rwxr-xr-x 1 root root 50080 Jan 9 2001 cgimagick
-rwxr-xr-x 1 root root 18532 Jan 9 2001 combine
-rwxr-xr-x 1 root root 31040 Jan 9 2001 convert
-rwxr-xr-x 1 root root 25280 Jan 9 2001 display
-rwxr-xr-x 1 root root 32752 Apr 24 2002 fslsfonts
-rwxr-xr-x 1 root root 31600 Apr 24 2002 fstobdf
-rwxr-xr-x 1 root root 7672 Jan 9 2001 identify
-rwxr-xr-x 1 root root 16800 Jan 9 2001 import
-rwxr-xr-x 1 root root 12620 Jan 9 2001 iptcutil
-rwxr-xr-x 1 root root 11764 Apr 24 2002 mkfontdir
-rwxr-xr-x 1 root root 28040 Jan 9 2001 mogrify
-rwxr-xr-x 1 root root 21972 Jan 9 2001 montage
-rwxr-xr-x 1 root root 29368 Jun 26 2002 xauth
-rwxr-xr-x 1 root root 72572 Apr 24 2002 xfs
-rwxr-xr-x 1 root root 26392 Apr 24 2002 xfsinfo


Any ideas from here?

JB.
Votes:2 Average:0.00

normal Re: Problem using ImageMagick

msg# 1.1.1.1.1.1.1.1.1.1
Previous post - Next post | Parent - Children.1 | Posted on 2003/11/15 23:09
GIJOE  ÀèǤ·³Áâ   Posts: 4110
Perhaps the problem is caused by php incompatibility.
is_executable() of php < 4.3.0 returns 0.

If you use php 4.2.x or 4.1.x, remove the check codes using is_executable() from include/functions.php and admin/checkconfigs.php.
Votes:0 Average:0.00

normal Re: Problem using ImageMagick

msg# 1.1.1.1.1.1.1.1.1.1.1
Previous post - Next post | Parent - Children.1 | Posted on 2003/11/16 7:55
jobiwan  ÆóÅùʼ   Posts: 4
Thanks for the quick reply...your support rox!

Changed includes/functiontions.php lines 118-124:

// Check if execute ImageMagick's convert
// if( ! is_executable( "$myalbum_imagickpath/convert" ) )
{
// no gif support, big thumbs!
copy( $imagePath , "$thumbs_dir/$node.$ext" ) ;
return 2 ;
}

Changed admin/checkcinfigs.php lines 116-124:

//if( is_executable( "$myalbum_imagickpath/convert" ) )//
{
exec( "$myalbum_imagickpath/convert --help" , $ret_array ) ;
if( count( $ret_array ) < 1 ) echo "<font color='#FF0000'><b>Error</b></font><br />\n" ;
else echo $ret_array[0] . "   <font color='#00FF00'><b>ok</b></font><br />" ;
} //else
//{
// echo "<font color='#FF0000'><b>Error</b></font><br />\n" ;
//}


Now I get this:

Config Check
Use ImageMagick: yes
Path: /usr/X11R6/bin
Version: @(#)ImageMagick 5.2.7 01/01/01 Q:8 cristy@mystic.es.dupont.com ok


Thumbnailing still does not work automatically and when I try and rebuild thumbs I get this error:

Redoing: 1.jpg faild making. copied.

Soooo....now where to?
Votes:0 Average:0.00

normal Re: Problem using ImageMagick

msg# 1.1.1.1.1.1.1.1.1.1.1.1
Previous post - Next post | Parent - Children.1 | Posted on 2003/11/16 11:40
GIJOE  ÀèǤ·³Áâ   Posts: 4110
hi jobiwan
Quote:
// Check if execute ImageMagick's convert
// if( ! is_executable( "$myalbum_imagickpath/convert" ) )
{
// no gif support, big thumbs!
copy( $imagePath , "$thumbs_dir/$node.$ext" ) ;
return 2 ;
}
Perhaps your comment-outing is incorrect.
	// Check if execute ImageMagick's convert
	// if( ! is_executable( "$myalbum_imagickpath/convert" ) ) 
	// {
		// no gif support, big thumbs!
	// 	copy( $imagePath , "$thumbs_dir/$node.$ext" ) ;
	// 	return 2 ;
	// }

If you can't create thumbnails even after changing above,
Try this change.
Quote:
// Make Thumb and check success
exec( "$myalbum_imagickpath/convert -resize -geometry {$myalbum_thumbwidth}x{$myalbum_thumbheight} $imagePath $thumbs_dir/$node.$ext" ) ;
Because your ImageMagick is old.
Votes:0 Average:0.00

normal Re: Problem using ImageMagick

msg# 1.1.1.1.1.1.1.1.1.1.1.1.1
Previous post - Next post | Parent - Children.1 | Posted on 2003/11/16 12:13
jobiwan  ÆóÅùʼ   Posts: 4
Thanks again for the quick response!

Host advised that they were using php 4.3.0+.

Tried both the fixes suggested...and still no joy.

When I do a "rebuild thumbs" it now says "completed" but there is no change to any of the thumbs at all?!

Bl;ah...back to square one

Joe
Votes:0 Average:0.00

normal Re: Problem using ImageMagick

msg# 1.1.1.1.1.1.1.1.1.1.1.1.1.1
Previous post - Next post | Parent - Children.1 | Posted on 2003/11/16 23:10
GIJOE  ÀèǤ·³Áâ   Posts: 4110
A possibilitiy of remaining is that
your php runs under safe_mode.

Can you confirm it?
Votes:0 Average:0.00

normal Re: Problem using ImageMagick

msg# 1.1.1.1.1.1.1.1.1.1.1.1.1.1.1
Previous post - Next post | Parent - No child | Posted on 2003/11/17 3:45
jobiwan  ÆóÅùʼ   Posts: 4
Hosting co. has already confirmed to me that they do not run in safe mode.

Kind of lost from here...may do a look through xoops gallery code and see what differences there are in the thumbnailing process 'cos that one seems to work.

Joe.
Votes:1 Average:10.00

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!