[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#632031: convert: gray colorspace creates broken postscript



clone 632031 -1
affect 632031 - imagemagick
reassign -1 imagemagick
found -1 imagemagick/8:6.6.9.7-5
thanks

Thanks bug both in imagemagick and in ghostscript ....

It seems that bounding box printing need a cast to int at least for
the page. Need to read specs for other field.

Bastien



On Wed, Jun 29, 2011 at 1:21 PM, Christoph Nodes <nodes@bfw-online.de> wrote:
> On Wed, 29 Jun 2011 12:39:15 +0200
> Vincent Fourmond <fourmond@gmail.com> wrote:
>
>>   Hello,
>>
>> On Wed, Jun 29, 2011 at 10:16 AM, Christoph Nodes
>> <bug-debian@bfw-online.de> wrote:
>> > the use of gray colorspace creates broken postscript code:
>> >
>> > $ convert rose: -colorspace Gray ps:test.ps && gs test.ps
>>
>>   I can't reproduce this here; could you please post the generated ps
>> file ? Could you check the attached one ? Couldn't this be a gs bug ?
>
> Thanks for the quick reply. I can see now the problem is self-made.
>
> We have patched our glibc to overcome rounding problems with the
> output of floating point numbers in printf. This seems to be the problem
> here: the values for the image columns and rows paramters in the
> generated postscript code are not integers but floating point numbers
> (see the end of the second hunk in the diff). The DisplayImage routine
> apparently cannot cope with that.
>
> However, shouldn't convert never give out floating point numbers as the
> image columns and rows parameter? Is there a '%g' instead of '%d' in
> the printf format string?
>
>
> Best regards,
>
> Christoph



Reply to: