Re: valid fields after PingImage()?

Bob Friesenhahn <[email protected]> Wed, 18 Jan 2012 11:04:12 -0600 (CST)
Newsgroups gmane.comp.video.graphicsmagick.apis
Message-ID <[email protected]>
On Wed, 18 Jan 2012, [email protected] wrote:
>
> I'm probably missing something!

Probably not.  Functions like GetImageDepth() and GetImageType() 
normally expect to operate based on observed image pixels, which 
requires reading the image.  However, JPEG ping can surely do better 
than what it is apparently currently reporting.  A single-channel JPEG 
should be reported as grey and if libjpeg is built for 8-bits, then 
reporting the depth as 8 by default is reasonable.

In ping-mode, each coder is responsible for setting the image 
properties based on what it can reasonably obtain based on reading 
only the image header.

Bob
-- 
Bob Friesenhahn
[email protected], http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d