Additional lines Re: [greenstone-users] Re: Client-CLI

From Xiao Hu
DateThu Nov 4 14:08:04 2010
Subject Additional lines Re: [greenstone-users] Re: Client-CLI
In-Reply-To (4CC78981-1000600-cs-waikato-ac-nz)
Hi Anupama,

We got a new problem on generating thumbnails via Client-GLI, this
time it was for gif files, and the command line option still works.
Could you please help identify the problem? Thank you very much!
--Xiao

Here are the error messages on the Client-GLI

ort.pl> DirectoryPlugin: preparing metadata for maine.gif
import.pl> File "maine.gif" matches filespec "maine.gif"
import.pl> DirectoryPlugin recurring: maine.gif
import.pl> ImagePlugin processing GIF images/maine.gif
import.pl> identify
"/home/group1/Greenstone/collect/projectg/import/GIF images/maine.gif"
2>&1
import.pl> identify: UnableToOpenConfigureFile `delegates.xml'.
import.pl> identify: NoDecodeDelegateForThisImageFormat
`/home/group1/Greenstone/collect/projectg/import/GIF
images/maine.gif'.
import.pl>
import.pl> file: /home/group1/Greenstone/collect/projectg/import/GIF
images/maine.gif: unknown, unknown, unknown, unknown
import.pl> THUMB: convert -interlace plane -verbose -geometry 50x50
"/home/group1/Greenstone/collect/projectg/import/GIF images/maine.gif"
"/home/group1/Greenstone/tmp/F25.gif"
import.pl> Converting image maine.gif to: THUMB gif ...
import.pl> Error: processing command failed. Exit status 256
import.pl> Command was: convert -interlace plane -verbose -geometry
50x50 "/home/group1/Greenstone/collect/projectg/import/GIF
images/maine.gif" "/home/group1/Greenstone/tmp/F25.gif"
import.pl> THUMB result: convert: UnableToOpenConfigureFile `delegates.xml'.
import.pl> convert: NoDecodeDelegateForThisImageFormat
`/home/group1/Greenstone/collect/projectg/import/GIF
images/maine.gif'.
import.pl> convert: MissingAnImageFilename
`/home/group1/Greenstone/tmp/F25.gif'.
import.pl>
import.pl> ...error encounterd
import.pl> Couldn't find thumbnail /home/group1/Greenstone/tmp/F25.gif
import.pl> SCREEN: convert -interlace plane -verbose -geometry 500x500
"/home/group1/Greenstone/collect/projectg/import/GIF images/maine.gif"
"/home/group1/Greenstone/tmp/F659.jpeg"
import.pl> Converting image maine.gif to: SCREEN jpeg ...
import.pl> Error: processing command failed. Exit status 256
import.pl> Command was: convert -interlace plane -verbose -geometry
500x500 "/home/group1/Greenstone/collect/projectg/import/GIF
images/maine.gif" "/home/group1/Greenstone/tmp/F659.jpeg"
import.pl> SCREEN result: convert: UnableToOpenConfigureFile `delegates.xml'.


On Tue, Oct 26, 2010 at 8:08 PM, Anupama of Greenstone Team
<greenstone_team@cs.waikato.ac.nz> wrote:
> Hi again Xiao,
>
> Please read the e-mail I sent prior to this. In step 3 of the steps outline
> therein, insert all the following lines instead of what the previous email
> contained. While that was sufficient for me, this is more complete.
> Regards,
> Anupama
>
>
> LINES TO INSERT for step 3:
>
>> # set up ImageMagick for the remote server
> □ □my $magick_home = &util::filename_cat($gsdl_bin_os,"imagemagick");
> □ □if(-e $magick_home) {
> □ □ □ □my $magick_bin = &util::filename_cat($magick_home,"bin");
> □ □ □ □my $magick_lib = &util::filename_cat($magick_home,"lib");
>
> □ □ □ □&util::envvar_append("PATH", $magick_bin);
>
> □ □ □ □if(!defined $ENV{'MAGICK_HOME'} || $ENV{'MAGICK_HOME'} eq "") {
> □ □ □ □ □ □$ENV{'MAGICK_HOME'} = $magick_home;
> □ □ □ □}
>
> □ □ □ □if($gsdlos eq "linux") {
> □ □ □ □ □ □&util::envvar_prepend("LD_LIBRARY_PATH", $magick_lib);
> □ □ □ □} elsif ($gsdlos eq "linux") {
> □ □ □ □ □ □&util::envvar_prepend("DYLD_LIBRARY_PATH", $magick_lib);
> □ □ □ □}
>
> □ □}
>
>
>