Re: valid fields after PingImage()?
[email protected] Wed, 18 Jan 2012 17:40:12 +0000
| Newsgroups | gmane.comp.video.graphicsmagick.apis |
|---|---|
| Message-ID | <CAGNS0RsTmwQVbPwsRZYyW7E8WAR29nQXUMdS81aU4h9eSN1eEw@mail.gmail.com> |
OK, I'll get my thing to detect Ping/Read contradictions and try to fail gracefully. Thanks Bob On 18 January 2012 17:04, Bob Friesenhahn <[email protected]> wrote: > 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 > _______________________________________________ > Graphicsmagick-apis mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/graphicsmagick-apis ------------------------------------------------------------------------------ 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