Page 1 of 1

Batch convert images but preserve exact colors?

Posted: Fri Dec 06, 2019 9:31 am
by nathanielrh
After extensive research I've discovered that images on xnconvert naturally have their colors altered and that can't be changed. Then, another person wrote on the forum that in order to convert the file and preserve the color in totality you need to use NConvert.
Now, I only found XnConvert because I tried ReaConverter and they had the same problem. I tried NConvert and the command prompt doesn't open on Windows 10 64-bit, so I cannot use NConvert. Then I tried ImageMagick and they can't do bulk images which defeats the purpose.

Let me give you an example. Here is a DDS file, and a PNG file that was created through XnConvert. All I'm doing is changing DDS to PNG.

But if you zoom in closely, you see the colors are different.

You have to zoom in about 700% and switch between photos to reveal the difference. 1.JPG is the dds converted to JPG using Paint.net. It maintains the EXACT COLOR of the original, and paint.net does that for every image (it would be a perfect program but it doesn't have bulk converting). Then, 2.JPG is through XnConvert, which has different colors than the original because __[insert poor excuse here]__. So open up both, zoom in 700% and switch between the two and you'll see the colors are different, and that's because XnConvert changes something. I don't know what it changes, but the colors are off in every single photograph and I can't fix it.

Do any of you know a program that can easily convert large amounts of images without completely messing up the color along the way? Thanks

Re: Batch convert images but preserve exact colors?

Posted: Fri Dec 06, 2019 12:00 pm
by xnview
your problem is only with DDS source?

Re: Batch convert images but preserve exact colors?

Posted: Fri Dec 06, 2019 1:34 pm
by nathanielrh
I just tested it, the answer is Yes.
Loading JPG and outputting as PNG -> Perfect Color with XnConvert (No problem!)
Loading DDS and outputting as PNG -> Wrong Color with XnConvert. Alphachannel is kept which is good.

That is my knowledge. Thank you for your reply!

Re: Batch convert images but preserve exact colors?

Posted: Fri Dec 06, 2019 3:24 pm
by xnview
nathanielrh wrote: Fri Dec 06, 2019 1:34 pm Loading JPG and outputting as PNG -> Perfect Color with XnConvert (No problem!) Alpha is deleted :( I need to keep alphachannel.
could you post the PNG file?

Re: Batch convert images but preserve exact colors?

Posted: Fri Dec 06, 2019 8:49 pm
by nathanielrh
I edited my post! I realize that JPG does not preserve Alphachannel so it was stupid of me to complain about alphachannel lost when converting from JPG (which has no alphachannel anyway) to PNG.

The problem here is not JPG to PNG, it's DDS to any other extension (DDS -> PNG, TIF, TGA, BMP, JPG) any of these changes has messed up color, as shown in the original post.

However, to answer your question, the color is perfectly fine when converting from JPG to PNG.

Here, I will test it another way for you:
I will use Paint.net to turn the DDS into PNG, and I will use XnConvert to change the PNG into another PNG.
Worked perfectly -- No Color difference.

1 (COLOR GOOD).png
1 (COLOR GOOD).png
1 (COLOR GOOD).png (55.27 KiB) Viewed 2568 times
1_XnConvertDDStoPNG (COLOR WRONG).png
1_XnConvertDDStoPNG (COLOR WRONG).png
1_XnConvertDDStoPNG (COLOR WRONG).png (128.54 KiB) Viewed 2568 times
1_XnConvertPNGtoPNG (COLOR GOOD).png
1_XnConvertPNGtoPNG (COLOR GOOD).png
1_XnConvertPNGtoPNG (COLOR GOOD).png (96.49 KiB) Viewed 2568 times

Re: Batch convert images but preserve exact colors?

Posted: Sun Dec 08, 2019 3:06 pm
by nathanielrh
So again thanks for helping me but do you know any programs that actually work for this task? Reaconverter has the same problem (do your programs share the same code?)

Re: Batch convert images but preserve exact colors?

Posted: Wed Dec 11, 2019 12:50 pm
by xnview
nathanielrh wrote: Sun Dec 08, 2019 3:06 pm So again thanks for helping me but do you know any programs that actually work for this task? Reaconverter has the same problem (do your programs share the same code?)
It's in the DDS loading code. Could you send the dds file?

Re: Batch convert images but preserve exact colors?

Posted: Wed Dec 11, 2019 8:10 pm
by nathanielrh
Here's the DDS, sorry I couldn't attach without zip file, direct draw is not an acceptable forum format.

By the way it's not just this dds that xnconvert and reaconvert has an issue with, it's almost all of them. but if you can figure out the problem for 1 you have probably solved the problem for all of them. Thank you for helping me figure out this problem.