Page 1 of 1

Image.read() with Geometry enhancement request...

Posted: 2008-01-27T18:26:58-07:00
by Bob-O-Rama
...or reality check.

I'd like to be able to specify a geometry value to crop an image during the read process. For example, given a 2048x1536 JPG image, I want to specify a Geometry( "1024x768+512+384" ) for example, to get the read( geometry, filename ) to crop the image during read. It appears the read() ignores the offset and instead scales.

Any thoughs on this? Are there clever ways to use IM to do this that I've missed?

-- Bob

Re: Image.read() with Geometry enhancement request...

Posted: 2008-01-27T18:55:43-07:00
by magick
Try the following, instead of specifying a filename of 'image.jpg', use 'image.jpg[1024x768+512+384]'.