phranque

msg:4543226 | 1:13 am on Feb 7, 2013 (gmt 0) |
welcome to WebmasterWorld, Amanda! have you tried adding something like this?
|
coffeebaby

msg:4543234 | 1:46 am on Feb 7, 2013 (gmt 0) |
thanks Phranque, that didn't seem to help but its possible I didn't change the correct file? There are two files for this script imagemagick.cgi and imagemagick.pl Maybe if I show the first part of the code for imagemagick.pl it would help...
############################################################ sub CreateThumbnail{ use Image::Magick;; my($final_thumb, $thumb, $t_width, $t_height); my ($file, $width, $height) = @_; #$width = $CONFIG{media_width} unless $width; #$height = $CONFIG{media_height} unless $height; $width = $CONFIG{media_width}; $height = $CONFIG{media_height};
($name, $ext) = &NameAndExt($file); $path = &ParentDirectory($file);
$image = new Image::Magick; $image->Read($file); ($orwidth,$orheight)=$image->Get('width','height'); if ($orwidth*$height>$orheight*$width) { and this is first part of the code for imagemagick.cgi
#!/usr/bin/ use Image::Magick;
########################################################################### # imagemagick ###########################################################################
############################################################ eval { ($0=~ m,(.*)/[^/]+,) && unshift (@INC, "$1"); ($0=~ m,(.*)\\[^\\]+,) && unshift (@INC, "$1"); require "config.pl"; unshift(@INC, $CONFIG{script_path}); unshift(@INC, "$CONFIG{script_path}/scripts"); require "database.pl"; require "default_config.pl"; require "imagemagick.pl"; require "html.pl"; require "library.pl"; require "mojoscripts.pl"; require 'new_database.pl'; use CGI; use CGI::Carp qw(fatalsToBrowser); &main; };
if ($@) { print "content-type:text/html\n\n"; print "Error Including configuration file, Reason: $@"; exit; }
|
phranque

msg:4543349 | 10:33 am on Feb 7, 2013 (gmt 0) |
first make sure your module's subdirectory exists. you should be able to find a directory named /usr/lib/Image/Magick/ - if you can't find an /Image/Magick/ subdirectory somewhere nothing you can do will fix this problem. assuming this directory exists, you must either include /usr/lib/ in the perl library path environment variable or specify the library path using the "use lib" perl command in every script that invokes a "use Image::Magick;".
|
SevenCubed

msg:4543461 | 3:56 pm on Feb 7, 2013 (gmt 0) |
I know absolutely nothing about perl, nada, but it might be worth pointing out something here. BEGIN failed--compilation aborted at... (shortened)...cgi/scripts/imagemagick.pl line 2. Line two in the script is: use Image::Magick; |
| Maybe if I show the first part of the code for imagemagick.pl it would help... ############################################################ sub CreateThumbnail{ use Image::Magick;; |
| There is an extra semi-colon at the end of line 2 that you pasted. I'm guessing it's too obvious to be the issue, must just be a typo when you pasted it here but just in case.
|
coffeebaby

msg:4543501 | 6:14 pm on Feb 7, 2013 (gmt 0) |
@SevenCubed yes that was a typo on my part. didn't think anybody would notice so I didn't change it. very astute ;) @Phranque I went into godaddy's CGI Admin and looked in the php modules list and I don't see imagemagick or perlmagick in there at all. I do see GD::Image. just in case I missed it, I did a "magick" search and got 0 results. so I guess until godaddy installs the module there's nothing i can do. Correct?
|
SevenCubed

msg:4543517 | 6:46 pm on Feb 7, 2013 (gmt 0) |
Ah okay...raising my mug of Starbucks French dark roast java to you.
|
coffeebaby

msg:4543519 | 6:56 pm on Feb 7, 2013 (gmt 0) |
brewing a fresh cup as I type this lol
|
phranque

msg:4543616 | 11:07 pm on Feb 7, 2013 (gmt 0) |
have you tried the "use lib" commmand in both the .pl and .cgi source files? | I went into godaddy's CGI Admin and looked in the php modules list |
| PHP and Perl are distinct environments.
|
coffeebaby

msg:4543626 | 11:26 pm on Feb 7, 2013 (gmt 0) |
i most definitely meant to write perl. i did try use lib on both actually.
|
|