Page 1 of 1
ImageMagick 6.2.9 AND geometry arguments
Posted: 2009-03-16T00:57:12-07:00
by Sandr
Version of Imagemagick on my hoster is "ImageMagick 6.2.9 12/19/06 Q16"
i cant find information about geometry arguments for this version
and i have trouble with my php class
command:convert -geometry '194x114^' sourcefile outputfile
!!not work
command:convert -geometry '194x114>' sourcefile outputfile
work fine
maybe version 6.2.9 not recognize this method?
Re: ImageMagick 6.2.9 AND geometry arguments
Posted: 2009-03-16T15:02:30-07:00
by fmw42
Sandr wrote:Version of Imagemagick on my hoster is "ImageMagick 6.2.9 12/19/06 Q16"
i cant find information about geometry arguments for this version
and i have trouble with my php class
command:convert -geometry '194x114^' sourcefile outputfile
!!not work
command:convert -geometry '194x114>' sourcefile outputfile
work fine
maybe version 6.2.9 not recognize this method?
6.2.9 is too old for use of ^ and requires 6.3.8-2
see
http://www.imagemagick.org/script/comma ... p#geometry
Re: ImageMagick 6.2.9 AND geometry arguments
Posted: 2009-03-17T02:06:38-07:00
by Sandr
thankyou
i change my class ....
Code: Select all
public function function Resize($x_size, $y_size, $method ){
.......................cu tline....................
if($this->version[3] <= 638 && $method == '^'){
$minRatio = min($this->size[0] / $x_size ,$this->size[1] / $y_size);
$new_x = ceil($this->size[0] / $minRatio);
$new_y = ceil($this->size[1] / $minRatio);
if(!$this->Resize($new_x,$new_y,'!'))
return false;
if(!$this->Crop($x_size,$y_size,'center'))
return false;
return true;
}
..........................cut line.......................
}
Re: ImageMagick 6.2.9 AND geometry arguments
Posted: 2009-03-22T23:08:39-07:00
by anthony
I would suggest that you double up your digits when generating a 'version' number for IM. IM has been known to generate a '10' version number.
See Im Examples,
http://www.imagemagick.org/Usage/api/#version
for an example of generating such a number.