Canvas resize adds black lines

Bugs found in XnView Classic. Please report only one bug per topic!

Moderators: XnTriq, helmut, xnview

User avatar
dma_k
Posts: 96
Joined: Tue Apr 14, 2009 8:50 am

Canvas resize adds black lines

Post by dma_k »

Initial setup:
  • XnView v2.48
  • B&W image with 91 pixels width
Steps:
  • Open attached
    sample.tif
  • 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
Expected: no black lines.

Notes:
  • Does not happen with another width.
  • Does not happen with other image position values.
You do not have the required permissions to view the files attached to this post.
User avatar
xnview
Author of XnView
Posts: 44490
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Canvas resize adds black lines

Post by xnview »

ok, thanks, i'll check
Pierre.
User avatar
dma_k
Posts: 96
Joined: Tue Apr 14, 2009 8:50 am

Re: Canvas resize adds black lines

Post 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: 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).
You do not have the required permissions to view the files attached to this post.
User avatar
xnview
Author of XnView
Posts: 44490
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Canvas resize adds black lines

Post by xnview »

right, will be fixed
Pierre.