[IM 6.6.2] identify.exe ignores -size option

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
paulborile

[IM 6.6.2] identify.exe ignores -size option

Post by paulborile »

Hi,

we switched from IM 6.5.4 to 6.6.2 (and went back to 6.5.4) because it seems that identify 6.6.2
ignores the -size 64x64 option we use to lower the execution time of identify -verbose command.
We use this tecnique as indicated in a previous post (viewtopic.php?f=3&t=16070)
to limit the image area taken into account by the identify command.
This, on a specific test file, gives 0.2 secs identify 6.5.4 execution time compared to 2.2 secs with identify 6.6.2
(the same time we have on identify 6.5.4 WITHOUT the -size 64x64 option).
Chance to have this fixed in some next version ?
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: [IM 6.6.2] identify.exe ignores -size option

Post by snibgo »

Does "-ping" do what you want faster?

identify -verbose -ping x.x
snibgo's IM pages: im.snibgo.com
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: [IM 6.6.2] identify.exe ignores -size option

Post by fmw42 »

At some recent release -size was changed to -define jpeg:size=

see http://www.imagemagick.org/Usage/formats/#jpg_read

The changelog shows


2009-11-26 6.5.8-1 Chris Madison <madisonblu@gmail...>

Add -define jpeg:extent option to restrict the maximum JPEG image file size.
Drarakel
Posts: 547
Joined: 2010-04-07T12:36:59-07:00
Authentication code: 8675308

Re: [IM 6.6.2] identify.exe ignores -size option

Post by Drarakel »

You probably meant that line: :wink:
2009-09-15 6.5.6-2 Cristy <quetzlzacatenango@image...>
# Use -define jpeg:size to scale a JPEG image to the specified size.
@paulborile:
It's all in your older thread. Just use "-define jpeg:size=64x64" instead of "-size 64x64" (of course, it's only for JPGs).
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: [IM 6.6.2] identify.exe ignores -size option

Post by anthony »

fmw42 wrote:At some recent release -size was changed to -define jpeg:size=

see http://www.imagemagick.org/Usage/formats/#jpg_read

The changelog shows


2009-11-26 6.5.8-1 Chris Madison <madisonblu@gmail...>

Add -define jpeg:extent option to restrict the maximum JPEG image file size.

Actually -size was not changed at all. Just its use for JPEG image reading was separated as it caused problem and confusion with its normal usage as a -size setting for image creation.

So -size used to set size for new images being created by internal image creation methods xc: plasma: gradient: etc...

While -define jpeg:size is used to hint to the JPEG library the final size of the image (get something this size or slightly larger). That causes the library to skip unneeded columns and rows of pixels. Of course you should still specify at least double the final 'resize' of the image so as to avoid excessive aliasing effects of column and row removal.

See JPEG readin Options
http://www.imagemagick.org/Usage/formats/#jpg_read
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply