Page 1 of 2

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

Posted: Mon Sep 27, 2010 6:07 pm
by sergo
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.

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

Posted: Fri Oct 01, 2010 7:26 am
by sergo
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.

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

Posted: Sat Oct 02, 2010 12:16 pm
by xnview
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...

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

Posted: Fri Feb 11, 2011 2:23 pm
by xnview
JPEG can only save RGB, not alpha. So a default background is used.

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

Posted: Mon Apr 04, 2011 9:51 pm
by sergo
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?

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

Posted: Mon Apr 04, 2011 11:31 pm
by marsh
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).

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

Posted: Tue Apr 05, 2011 7:13 am
by xnview
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?

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

Posted: Tue Apr 05, 2011 10:20 am
by sergo
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.

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

Posted: Tue Apr 05, 2011 8:30 pm
by xnview
Which bug?? When saving JPEG you would like that XnView remove alpha channel??

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

Posted: Tue Apr 05, 2011 9:03 pm
by thibaud
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.

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

Posted: Thu Apr 07, 2011 9:47 am
by sergo
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.

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

Posted: Thu Apr 07, 2011 7:09 pm
by xnview
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...

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

Posted: Thu Apr 07, 2011 9:58 pm
by sergo
That would be incredibly cool! :)

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

Posted: Wed Apr 13, 2011 1:25 pm
by xnview
Please try 1.98 beta3

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

Posted: Fri Apr 15, 2011 7:35 am
by sergo
Thank you, Pierre, but I see no difference. Is there some option to ignore/remove alpha channel?