Converting from exr, tif and psd to jpeg - white background.

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

Moderators: XnTriq, xnview

sergo
Posts: 56
Joined: Mon Aug 14, 2006 4:41 pm

Converting from exr, tif and psd to jpeg - white background.

Post by sergo » Mon Sep 27, 2010 6:07 pm

Hi dear developers,

I have a big problem with converting "alpha channel"-ed file formats to JPEG with XnView. Here are links to exr and tiff example files.
http://narod.ru/disk/25379646000/camera ... 0.exr.html
http://narod.ru/disk/25379837000/camera ... 0.tif.html

When I convert them to jpeg I get image with the white background. I'm aware of the workaround - disabling "Use alpha channel" checkbox - but it is not acceptable for me, I completelly lose access to the alpha channel it that case, can't see it with 'M' shortcut, for example, can't convert exr to tiff, and so on.
Second workaround was selecting "Convert to TrueColor" in batch convert but that command doesn't help me anymore - since one of the latest version, can't recall exact number.

Converting from exr to tiff goes smoothly - tiff file has untouched alpha channel and everything is fine, but with jpegs... oh, I can't speak about jpeg conversion without a pain...
I don't know if this is a bug, may be it is correct (from developers' point of view) to apply alpha channel to rgb channel when image could not have separate alpha channel, but PLEASE! Give users some option to just IGNORE the alpha channel during conversion! It would so helpful!

Sergo.

P.S. Converting from multichanneled psd file to jpeg is also buggy - some of the additional channels applying to rgb channel of the jpeg.

sergo
Posts: 56
Joined: Mon Aug 14, 2006 4:41 pm

Re: Converting from exr, tif and psd to jpeg - white backgro

Post by sergo » Fri Oct 01, 2010 7:26 am

Hi again!

This message seems to have no interest to anyone, I think it's due to file downloading problem, so I've uploaded them to google docs. Here are new links:
https://docs.google.com/fileview?id=0Bw ... y=CKnTrIEG
https://docs.google.com/leaf?id=0BwXBgu ... y=COm34qkL

Does the lack of response in this thread meens that this is not a bug? If this is the case, could someone provide a little help on the subject, please?
What is the right way to convert exr, psd and tiff files to jpeg?

Thank you.
Sergo.

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

Re: Converting from exr, tif and psd to jpeg - white backgro

Post by xnview » Sat Oct 02, 2010 12:16 pm

sergo wrote:Does the lack of response in this thread meens that this is not a bug? If this is the case, could someone provide a little help on the subject, please?
No, i'll check the problem soon...
Pierre.

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

Re: Converting from exr, tif and psd to jpeg - white backgro

Post by xnview » Fri Feb 11, 2011 2:23 pm

JPEG can only save RGB, not alpha. So a default background is used.
Pierre.

sergo
Posts: 56
Joined: Mon Aug 14, 2006 4:41 pm

Re: Converting from exr, tif and psd to jpeg - white backgro

Post by sergo » Mon Apr 04, 2011 9:51 pm

Thank you for reply Pierre.
JPEG can only save RGB, not alpha. So a default background is used.
Why JPEG can not ignore alpha channel then?

marsh
XnThusiast
Posts: 2443
Joined: Sun May 15, 2005 6:31 am

Re: Converting from exr, tif and psd to jpeg - white backgro

Post by marsh » Mon Apr 04, 2011 11:31 pm

Hello,
Perhaps the program's export function has the result you prefer in target jpeg. It matches view of not using alpha channel with sample tif (sky blue).

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

Re: Converting from exr, tif and psd to jpeg - white backgro

Post by xnview » Tue Apr 05, 2011 7:13 am

sergo wrote:
JPEG can only save RGB, not alpha. So a default background is used.
Why JPEG can not ignore alpha channel then?
You means remove the alpha channel?
Pierre.

sergo
Posts: 56
Joined: Mon Aug 14, 2006 4:41 pm

Re: Converting from exr, tif and psd to jpeg - white backgro

Post by sergo » Tue Apr 05, 2011 10:20 am

The main goal is to have correct conversion from exr-s and tiff-s to jpeg file.
I really don't know if it is necessary to remove alpha channel from tiff file before conversion but I am sure that this should not be done by-hand, this should be done automatically - tiff's RGB should go to jpg's RGB and tiff's alpha channel should be dropped. I agree that's the dilettante's point of view but I believe that it is possible to accomplish - this bug was not in old versions of xnview (I can't recall which versions, unfortunately, may be 1.8x).

Thank you.

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

Re: Converting from exr, tif and psd to jpeg - white backgro

Post by xnview » Tue Apr 05, 2011 8:30 pm

Which bug?? When saving JPEG you would like that XnView remove alpha channel??
Pierre.

thibaud
Posts: 269
Joined: Sat Dec 02, 2006 12:41 am
Contact:

Re: Converting from exr, tif and psd to jpeg - white backgro

Post by thibaud » Tue Apr 05, 2011 9:03 pm

I guess it's safe to assume that alpha channel should be ignored when converting to formats not providing any support for alpha channels.
by filling the rbg with a plain color with the alpha channel will more than often result in data loss.

sergo
Posts: 56
Joined: Mon Aug 14, 2006 4:41 pm

Re: Converting from exr, tif and psd to jpeg - white backgro

Post by sergo » Thu Apr 07, 2011 9:47 am

When saving JPEG you would like that XnView remove alpha channel??
Yes, I would like to remove alpha channel when converting to jpeg.

Thank you, Pierre.

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

Re: Converting from exr, tif and psd to jpeg - white backgro

Post by xnview » Thu Apr 07, 2011 7:09 pm

sergo wrote:
When saving JPEG you would like that XnView remove alpha channel??
Yes, I would like to remove alpha channel when converting to jpeg.
Right, in older version, the alpha was removed, but many users was disapointed. I'll add an option...
Pierre.

sergo
Posts: 56
Joined: Mon Aug 14, 2006 4:41 pm

Re: Converting from exr, tif and psd to jpeg - white backgro

Post by sergo » Thu Apr 07, 2011 9:58 pm

That would be incredibly cool! :)

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

Re: Converting from exr, tif and psd to jpeg - white backgro

Post by xnview » Wed Apr 13, 2011 1:25 pm

Please try 1.98 beta3
Pierre.

sergo
Posts: 56
Joined: Mon Aug 14, 2006 4:41 pm

Re: Converting from exr, tif and psd to jpeg - white backgro

Post by sergo » Fri Apr 15, 2011 7:35 am

Thank you, Pierre, but I see no difference. Is there some option to ignore/remove alpha channel?

Post Reply