Parsing colorspace in msl.c

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
nop

Parsing colorspace in msl.c

Post by nop »

Hello,
I've downloaded ImageMagick 6.6.5-9 and tried process following MSL code in conjure. Unfortunately conjure displays error: conjure.exe: unrecognized image colorspace `rgb' @ error/msl.c/MSLStartElement/5984. This MSL code works in older version 6.5.4-9 in which I tested it before.

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<image>
  <image>
    <read filename="V:\\Foto\\2008-01-26\\001.JPG" />
    <get width="base-width" height="base-height" />
    <resize geometry="840x660>" />
    <get width="dest-width" height="dest-height" />
    <set colorspace="rgb" />
    <print output="1/3 V:\\Foto\\2008-01-26\\001.JPG\n" />
    <print output=" resizing from %[base-width]x%[base-height] to %[dest-width]x%[dest-height]\n" />
    <print output=" saving as V:\\Foto\\2008-01-26\\pro_web\\001.jpg\n" />
    <write filename="V:\\Foto\\2008-01-26\\pro_web\\001.jpg" quality="95" />
  </image>
  <image>
    <read filename="V:\\Foto\\2008-01-26\\002.JPG" />
    <get width="base-width" height="base-height" />
    <resize geometry="840x660>" />
    <get width="dest-width" height="dest-height" />
    <set colorspace="rgb" />
    <print output="2/3 V:\\Foto\\2008-01-26\\002.JPG\n" />
    <print output=" resizing from %[base-width]x%[base-height] to %[dest-width]x%[dest-height]\n" />
    <print output=" saving as V:\\Foto\\2008-01-26\\pro_web\\002.jpg\n" />
    <write filename="V:\\Foto\\2008-01-26\\pro_web\\002.jpg" quality="95" />
  </image>
  <image>
    <read filename="V:\\Foto\\2008-01-26\\003.JPG" />
    <get width="base-width" height="base-height" />
    <resize geometry="840x660>" />
    <get width="dest-width" height="dest-height" />
    <set colorspace="rgb" />
    <print output="3/3 V:\\Foto\\2008-01-26\\003.JPG\n" />
    <print output=" resizing from %[base-width]x%[base-height] to %[dest-width]x%[dest-height]\n" />
    <print output=" saving as V:\\Foto\\2008-01-26\\pro_web\\003.jpg\n" />
    <write filename="V:\\Foto\\2008-01-26\\pro_web\\003.jpg" quality="95" />
  </image>
</image>
Watching to source msl.c, isn't there a error on line 5981? Shouldn't be variable keyword replaced with variable value?

Thanks for reply
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Parsing colorspace in msl.c

Post by magick »

Thanks for the problem report and suggested patch. We have a fix for the problem in ImageMagick 6.6.5-10 Beta available by sometime tomorrow.
Post Reply