Page 1 of 1
Automatic Cropping does not work
Posted: Mon Dec 08, 2008 6:40 am
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
Posted: Mon Dec 08, 2008 10:27 pm
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?
Posted: Wed Dec 10, 2008 10:26 pm
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.
Posted: Wed Dec 10, 2008 10:31 pm
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
Posted: Fri Dec 12, 2008 8:41 am
by xnview
Please post a sample file?
Re: Automatic Cropping does not work
Posted: Thu Aug 05, 2010 3:55 pm
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
Re: Automatic Cropping does not work
Posted: Wed Aug 11, 2010 8:31 pm
by helmut
Confirmed.

With your above sample image, automatic cropping just does not work, not even when specifying a high tolerance.
Re: Automatic Cropping does not work
Posted: Tue Sep 07, 2010 12:30 pm
by xnview