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

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
Bob-O-Rama
Posts: 31
Joined: 2007-11-23T15:34:51-07:00

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

Post 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
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

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

Post by magick »

Try the following, instead of specifying a filename of 'image.jpg', use 'image.jpg[1024x768+512+384]'.
Post Reply