Changeset 9574
- Timestamp:
- 2005-04-07T12:32:06+12:00 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/perllib/plugins/ImagePlug.pm
r9067 r9574 107 107 } 108 108 109 # Check that ImageMagick is installed and available on the path 110 my $result = `identify 2>&1`; 111 if ($? == -1 || $? == 256) { # Linux and Windows return different values for "program not found" 112 $self->{'imagemagick_not_installed'} = 1; 109 # Check that ImageMagick is installed and available on the path (except for Windows 95/98) 110 if (!($ENV{'GSDLOS'} eq "windows" && !Win32::IsWinNT())) { 111 my $result = `identify 2>&1`; 112 if ($? == -1 || $? == 256) { # Linux and Windows return different values for "program not found" 113 $self->{'imagemagick_not_installed'} = 1; 114 } 113 115 } 114 116 … … 142 144 my $verbosity = $self->{'verbosity'}; 143 145 my $outhandle = $self->{'outhandle'}; 146 147 # None of this works very well on Windows 95/98... 148 if ($ENV{'GSDLOS'} eq "windows" && !Win32::IsWinNT()) { 149 print $outhandle "ImagePlug: Windows 95/98 not supported\n" if ($verbosity > 1); 150 return undef; 151 } 144 152 145 153 # None of this is going to work very well without ImageMagick...
Note:
See TracChangeset
for help on using the changeset viewer.