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

Bug#632031: convert: gray colorspace creates broken postscript



Could you post also the printf patch and the rational for this patch ?

Bastien

On Wed, Jun 29, 2011 at 2:59 PM, Christoph Nodes <nodes@bfw-online.de> wrote:
> On Wed, 29 Jun 2011 14:00:11 +0200
> Bastien ROUCARIES <roucaries.bastien@gmail.com> wrote:
>
>> 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.
>
> In fact, casting isn't necessary at all, at least for the printing of
> the image columns and rows. The corresponding variables (structure
> elements) are of integer type already. So I'd like to suggest the
> appended patch to conquer the problem. It eliminates the casts
> and replaces '%.20g' with '%zd' in the format string for the printing
> of the image columns and rows.
>
> As the diff indicates, some numbers of the DSC comments BoundingBox,
> Pages and Page are also printed with fractional parts. This might be a
> similar problem.
>
>
> Best regards,
> Christoph



Reply to: