[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Rounding errors in image size when printing to png/jpg etc.
From: |
Jordi Gutiérrez Hermoso |
Subject: |
Re: Rounding errors in image size when printing to png/jpg etc. |
Date: |
Sun, 18 Sep 2011 23:47:11 -0500 |
On 18 September 2011 08:18, amir <address@hidden> wrote:
> I see some sort of rounding error when saving to png or jpg.
> The size of the image is very often slightly off by 1 or 2 pixels on the y-
> or x-axis.
> When using fltk, the code needs to be invoked twice to start scaling.
I was seeing something like this the other day. I suspect the problem
occurs earlier than print. If you use imshow, for example, are the
border pixels shown? Try for example adding an all-black border. Do
you see it in imshow?
- Jordi G. H.