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
Attachment:
diff
Description: Binary data
Attachment:
test-bug.ps
Description: PostScript document