Re: MagickSetImageType and gm convert: inconsistent behaviour

Graham Leggett <[email protected]> Wed, 6 Oct 2010 18:13:58 +0200
Newsgroups gmane.comp.video.graphicsmagick.bugs
Message-ID <[email protected]>
On 29 Sep 2010, at 9:32 PM, Bob Friesenhahn wrote:

> I would like to see if ImageMagick's Wand library has made any  
> special provisions for this issue.  If ImageMagick has already set a  
> precedent then it would be good to follow it in order to cause the  
> least surprise for ImageMagick Wand users.
>
> What you say seems reasonable except that it is also likely that a  
> few format writers (there are many!) do not respect the ImageInfo  
> type field but do output a subformat suitable for the current image  
> representation.  This would be an argument to immediately adjust the  
> current image representation based on the type request.
>
> Research is required.

After doing some digging, I haven't found any indication that  
ImageMagick solved this issue. I did find these two requests for help  
on the same problem, but no responses so far. I suspect this problem  
hasn't been solved in ImageMagick yet either:

http://studio.imagemagick.org/discourse-server/viewtopic.php?f=1&t=15069&start=0
http://www.imagemagick.org/discourse-server/viewtopic.php?f=10&t=12236

Let me get a potential patch together.

Regards,
Graham
--


------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb