[Fixed] Changed size when importing clipboard

Bugs and Issues in 1.82 Test versions which have been fixed and verified as resolved.

Moderators: helmut, XnTriq, xnview

ckv_

[Fixed] Changed size when importing clipboard

Post by ckv_ »

Import Clipboard function shrinks the image height one pixel.
User avatar
xnview
Author of XnView
Posts: 46247
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Bug > Import clipboard

Post by xnview »

ckv wrote:Import Clipboard function shrinks the image height one pixel.
Strange, if i import the desktop, i have the correct size.
Pierre.
User avatar
Clo
XnThusiast
Posts: 4441
Joined: Sun Oct 17, 2004 4:57 am
Location: Bordeaux, France
Contact:

The same here

Post by Clo »

:) Hello Pierre !
- Confirmed here. However, that does't occur for small images, i.e. : 32*32 icons or BMP.
- I could see that with a BMP around 500*500 px. Copied in Paint >>> Imported in XnView. The odd thing is : if I drag & drop the same image to the XnView icon in Total Commander, it's displayed alright, not any pixel is missing… :?:

:mrgreen: Best regards,
Claude
Clo
Last edited by Clo on Tue Feb 01, 2005 6:17 am, edited 1 time in total.
Old user ON SELECTIVE STRIKE till further notice
User avatar
xnview
Author of XnView
Posts: 46247
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: The same here

Post by xnview »

Clo wrote:- Confirmed here. However, that does't occur for small images, i.e. : 32*32 icons or BMP.
I don't understand, the problem is with the capture tools, so no icons or BMP????
Pierre.
User avatar
Clo
XnThusiast
Posts: 4441
Joined: Sun Oct 17, 2004 4:57 am
Location: Bordeaux, France
Contact:

Small do not

Post by Clo »

:D Hello Pierre !
¤ I meant small images generally: icons (which are small images), small BMPs or any whatever image-extension…
- I didn't define yet the threshold-size where the bug begins, though… Only the size does matter, it seems…
- And the problem is not set in the XnView capture-tool, since I got the bug pasting a capture made in M$-Paint,
like I told above.

:mrgreen: K R
Claude
Clo
Last edited by Clo on Thu Feb 03, 2005 8:20 am, edited 1 time in total.
Old user ON SELECTIVE STRIKE till further notice
ckv

Post by ckv »

Heres a demonstration pictures about the bug first imported and then original picture. As you can see it doesn't lose 1px height it shrinks the image to fit the wrong size. And also sometimes when I shrink image it got wrong size.

http://koti.mbnet.fi/ckv/common/temp/ClipBoard-2.gif
http://koti.mbnet.fi/ckv/common/temp/grid.gif
ckv

Post by ckv »

By shrinking the image I mean the resize function. :wink:
User avatar
xnview
Author of XnView
Posts: 46247
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Post by xnview »

ckv wrote:Heres a demonstration pictures about the bug first imported and then original picture. As you can see it doesn't lose 1px height it shrinks the image to fit the wrong size. And also sometimes when I shrink image it got wrong size.

http://koti.mbnet.fi/ckv/common/temp/ClipBoard-2.gif
http://koti.mbnet.fi/ckv/common/temp/grid.gif
But how do you copy this file in clipboard?
Pierre.
Guest

Post by Guest »

:idea: I just notice I cant cet this bug occur whit my all programs. I mean if I copy the picture from Internet Explorer the bug don't occur but if I copy the image for MSpait the bug will occur. This can be MSpaint bug but if I copy the image from MSpaint and paste into any other of my image programs it will get the right size. :|
User avatar
xnview
Author of XnView
Posts: 46247
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Post by xnview »

Anonymous wrote::idea: I just notice I cant cet this bug occur whit my all programs. I mean if I copy the picture from Internet Explorer the bug don't occur but if I copy the image for MSpait the bug will occur. This can be MSpaint bug but if I copy the image from MSpaint and paste into any other of my image programs it will get the right size. :|
Yes, strange, i'll check
Pierre.
User avatar
helmut
Posts: 8704
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Re: Bug > Import clipboard

Post by helmut »

ckv wrote:Import Clipboard function shrinks the image height one pixel.
I've tried a bit and could reproduce the problem:

1. In MS Paint create an image.
2. Select a 9x9 pixel area
3. Copy the selection to the clipboard
4. Import the image in XnView using "Edit > Import Clipboard"
-> The image imported in XnView has 8x8 images, only. Bug.

When pasting the clipboard contents to another instance of MS Paint or Axialis AX-Icon, the image is 9x9 (correct).
User avatar
Clo
XnThusiast
Posts: 4441
Joined: Sun Oct 17, 2004 4:57 am
Location: Bordeaux, France
Contact:

Confirmed and ++

Post by Clo »

>> Helmut
Hello !

- I can confirm you test, and made some others available in this small archive.
- It seems that only the pics having an ODD count of pixels are affected.
- Hence, it couln't be seen with Windows icons, since they have always a n^2 side-length…
:mrgreen: VG
Claude
Clo
Old user ON SELECTIVE STRIKE till further notice
marsh
XnThusiast
Posts: 2443
Joined: Sun May 15, 2005 6:31 am

Re: Bug > Import clipboard

Post by marsh »

helmut wrote:
ckv wrote:Import Clipboard function shrinks the image height one pixel.
I've tried a bit and could reproduce the problem:

1. In MS Paint create an image.
2. Select a 9x9 pixel area
3. Copy the selection to the clipboard
4. Import the image in XnView using "Edit > Import Clipboard"
-> The image imported in XnView has 8x8 images, only. Bug.

When pasting the clipboard contents to another instance of MS Paint or Axialis AX-Icon, the image is 9x9 (correct).
Fixed. v.1.80
ckit
XnThusiast
Posts: 2583
Joined: Tue Feb 17, 2004 1:11 am
Location: QLD, Australia
Contact:

Post by ckit »

I can confirm this has been fixed in XnView 1.80.1.

Tested with MS Paint and PhotoFiltre using a 9x9 image.
AMD Ryzen 3 3300X 3.8Ghz, 16Gb DDR4, RX6600XT with Dell U2520D at 2560x1440@60Hz scaling 125%
Win11 x64 24H2, Hard Disk Sentinel Pro, MS PowerToys, Process Lasso Pro and Wintoys
User avatar
helmut
Posts: 8704
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Post by helmut »

Thank you for checking. I'll move this one to the archive in the next couple of days.
Locked