Page 1 of 1
1px black line at the right side when export JPG
Posted: 10 May 2010, 08:56
by Animark
Hi,
when I draw a picture in TVP with project size = 1920 x 1080 pixel and want to export it as a JPG with a size = 1000 x 563 pixel (preserve proportion checked), i get a JPG with a size of 1001 x 563 pixel. TVPaint adds a 1 pixel black line at the right side of the image. When I come back to the export dialog, to export it again, it shows a size of 1001 x 563 pixel. Take a look at the picture to see the black line.
Can someone confirm this? Is this a bug? I use TVPaint 9.5.12.
Re: 1px black line at the right side when export JPG
Posted: 10 May 2010, 09:02
by Hervé
It's a rounding issue when "preserve proportion" is actived.
Unselect it to fix this problem.
Re: 1px black line at the right side when export JPG
Posted: 10 May 2010, 09:43
by Animark
Hm?
Thanks, but if I uncheck this I will get the black line at the bottom of the picture. If I also uncheck "Correct Aspect" the black line disappears, but I am not shure if the picture will be stretched a little bit and looses quality.
Re: 1px black line at the right side when export JPG
Posted: 10 May 2010, 10:36
by slowtiger
Can't you just use a similar size without rounding problems, like 960 * 540 or 992 * 558 or 1008 * 567?
As for the rounding error: wouldn't it be possible to add a routine which just checks and adds a copy of the preceding pixel line or column if necessary? This way the black line would vanish, and a repeated pixel at the edge of the frame is most unlikely to be detected.
Re: 1px black line at the right side when export JPG
Posted: 10 May 2010, 11:38
by Animark
slowtiger wrote:Can't you just use a similar size without rounding problems, like 960 * 540 or 992 * 558 or 1008 * 567?
Yes, I should use that sizes. I never had that problem in other applications, that's why I am a little bit irritated.
Animark wrote:As for the rounding error: wouldn't it be possible to add a routine which just checks and adds a copy of the preceding pixel line or column if necessary? This way the black line would vanish, and a repeated pixel at the edge of the frame is most unlikely to be detected.
Good idea, better than a black line, but not as good as a solution without rounding problems
