Page 1 of 1

Canvas resize adds black lines

Posted: Mon Nov 04, 2019 1:47 pm
by dma_k
Initial setup:
  • XnView v2.48
  • B&W image with 91 pixels width
Steps:
  • Open attached
    sample.tif
    (378 Bytes) Downloaded 118 times
  • Do Image → Canvas size. Set new width to 100px and select Top-Left of Middle-Left or Bottom-Left as image position. Note that background color is white.
Result: Canvas is resized, but 5 black vertical lines are added:
shot.png
shot.png (23.89 KiB) Viewed 6082 times
Expected: no black lines.

Notes:
  • Does not happen with another width.
  • Does not happen with other image position values.

Re: Canvas resize adds black lines

Posted: Tue Nov 05, 2019 2:32 pm
by xnview
ok, thanks, i'll check

Re: Canvas resize adds black lines

Posted: Fri Oct 01, 2021 9:00 am
by dma_k
The problem is still there.
  • XnView v2.50.
  • Open attached test.png.
  • Apply Image→Canvas size with width = 150, position = middle-left.
result.png
result.png (12.49 KiB) Viewed 5228 times
Result: Image is resized to 150px, but the 3px black line is added on the right side of the image on the beginning (border) of the extension area.

The issue has to do with the odd number of initial width pixels (141px).

Re: Canvas resize adds black lines

Posted: Tue Oct 05, 2021 11:45 am
by xnview
right, will be fixed