Automatic Cropping does not work

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

Moderators: helmut, XnTriq, xnview

Post Reply
Guest

Automatic Cropping does not work

Post by Guest »

To reproduce, do this:

With any image in Viewer, go to Image -> Canvas size (Shift+C).
Increase canvas by a few pixels and take note of the background color.

Then go to Image -> Automatic crop (Alt+Y).
Use the same background color as above.

Image is unaltered.

This bug is new. IIRC, in v1.95.2 automatic cropping worked correctly, since I cropped a large number of files (might have been v1.94.2).

PJ
User avatar
helmut
Posts: 8704
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Post by helmut »

Works fine for me in XnView 1.95.1 and XnView 1.95.4.

Is the image you crop true colour (RGB) or does it have a colour palette?
Guest

Post by Guest »

This happens when the background color is not black or white.

It happened to me with the colors (R,G,B): (76,192,248) & (112,160,232).

I then tested with a few other custom colors and it also didn't work.

Then I tested with Black (0,0,0) and White (255,255,255) and it worked.
Guest

Post by Guest »

(continued...)

BTW, all the images used were 24-bit JPEG. They were images I wanted to use as wallpaper with aspect ratios that didn't fit my screen. Instead of cropping and resizing, I added a border.

PJ
User avatar
xnview
Author of XnView
Posts: 46255
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Post by xnview »

Please post a sample file?
Pierre.
EPAC
Posts: 2
Joined: Thu Aug 05, 2010 3:34 pm

Re: Automatic Cropping does not work

Post by EPAC »

Hi,

I'm having the same issue; a sample image can be found below (24-bit RGB PNG, background color (58,110,165)):
http://couzijn.freehostia.com/sample.png
(copy-paste the address to bypass the web hosting nag screen)
Remarkably, in batch processing the Auto crop transformation does work as desired.
It'd be great if this bug could be fixed.

Thanks,

Erik
User avatar
helmut
Posts: 8704
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Re: Automatic Cropping does not work

Post by helmut »

Confirmed. :bugconfirmed: With your above sample image, automatic cropping just does not work, not even when specifying a high tolerance.
User avatar
xnview
Author of XnView
Posts: 46255
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Automatic Cropping does not work

Post by xnview »

Please try XnView 1.97.7
Pierre.
Post Reply