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?
ImageMagick 6.2.9 AND geometry arguments
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: ImageMagick 6.2.9 AND geometry arguments
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
thankyou
i change my class ....
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.......................
}
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: ImageMagick 6.2.9 AND geometry arguments
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.
See Im Examples, http://www.imagemagick.org/Usage/api/#version
for an example of generating such a number.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/