ImageMagick 6.2.9 AND geometry arguments

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
Sandr

ImageMagick 6.2.9 AND geometry arguments

Post 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?
User avatar
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

Post 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
Sandr

Re: ImageMagick 6.2.9 AND geometry arguments

Post 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.......................
}
User avatar
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

Post 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.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply