The image is shifted when pasting from clipboard

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

Moderators: helmut, XnTriq, xnview

Post Reply
User avatar
dma_k
Posts: 100
Joined: Tue Apr 14, 2009 8:50 am

The image is shifted when pasting from clipboard

Post by dma_k »

Dear XnView community,

I am observing the strange behaviour with XnView. When I select the image region and then copy + paste it, the image is shifted to the right.

Test image: test.tif

Step1: Select the part of the image and press Ctrl+C:
Image

Step2: Press Ctrl+V (the image fragment is inserted with shift):
Image

Step3: When inserted into Photoshop, the image is "interlaced":
Image

P.S. Is there any possibility to insert the image at given X/Y position without changed X/Y ratio and/or scale? Also I was not able to find the option, that allowed me to paste the image without breaking X/Y ratio. The following options is enabled: Tools → Options → General → Operations → Adjust zoom if X/Y DPI is different.
P.S. It is pity I can't attach images to forum posts. I think some reasonable size should be allowed.
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: The image is shifted when pasting from clipboard

Post by xnview »

Which version do you use?
Pierre.
User avatar
dma_k
Posts: 100
Joined: Tue Apr 14, 2009 8:50 am

Re: The image is shifted when pasting from clipboard

Post by dma_k »

xnview wrote:Which version do you use?
Sorry, forgot to report this.

v1.98 (May 2011)
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: The image is shifted when pasting from clipboard

Post by xnview »

and with 1.98.2?
Pierre.
User avatar
Drahken
Posts: 884
Joined: Sun Apr 10, 2005 4:29 pm

Re: The image is shifted when pasting from clipboard

Post by Drahken »

I was just investigating this. First with 1.98b4. In that version, any b&w images shifted to the right. It also affected greyscale & 8bit color images, but in different ways. Greyscale ones shifted to the left & 8bit color both shifted & turned nearly black.

After that, I downloaded 1.98.2 & tried again. B&W and 8bit color pics no longer have the problem, BUT greyscale ones have a new problem; The pasted portion is considerably darker than the original. When you use a high number of greys (such as 256) the difference is slight, but the difference becomes more & more noticable the fewer shades of grey you use. (Dithering or no dithering makes no diff.)
This can betested by taking any truecolor image, converting it to greyscale, then selecting a section & hitting ctrl+c then ctrl+v.
Oh the feuhrer, oh the feuhrer, oh the feuhrer's nipples bonk!
User avatar
dma_k
Posts: 100
Joined: Tue Apr 14, 2009 8:50 am

Re: The image is shifted when pasting from clipboard

Post by dma_k »

xnview wrote:and with 1.98.2?
v1.98.2 works very well. However the problem when pasting the image from clipboard to Photoshop is there, but I believe that is Photoshop problem, as paste to mspaint & Gimp works just fine.
Post Reply