Page 1 of 1

Wrong border after resize

Posted: Fri May 16, 2008 11:28 am
by eJay
Hi

I've tried to change some pictures with adding some borders on them. I've changed size of picture to 278x208 and:

- resizing canvas by 1 (to 279x209, grey color)
- resizing canvas by 1 (to 280x210, black color)
- change DPI to 96x96

And then, I got sth like this one - http://img221.imageshack.us/img221/4773 ... upeie7.jpg

Look at border especially. It looks like XnView 1.93.6 didn't cover picture with black border from the right side.

Any suggestions?

Posted: Fri May 16, 2008 3:25 pm
by Troken
Let me get this straight: did you resize the image AFTER adding the border? In that case its probably due to the resize, an effect of pixels merged toghether during the resize process. Try to resize first, THEN adding borders. That should do it, or?

I suspect its not due to any bug in XnView, would probably happen in any image editor.

Posted: Fri May 16, 2008 5:04 pm
by eJay_
I made it step by step as you adviced me and the problem is still there... One color missed on side.

Posted: Fri May 16, 2008 6:38 pm
by helmut
If canvas is resized by +1 pixel, XnView has to choose either the left or the right side for adding the pixel (1 pixel cannot be split into two 1/2 pixels). Obviously XnView chooses the left side all the time.

With "Position" you set the position of the image. Pixels are either added/subtracted on both sides (Middle/Center) or at the opposite side. (e.g. if you choose Top-Left pixels will be added at the bottom and right side).

Please try this:
1. Resize canvas by 1 (to 279x209, grey color) . Choose Position "Top-left"
2. Resizing canvas by 1 (to 280x210, black color) . Choose Position "Bottom-Right".

I guess this should do what you want.