Batch convert images but preserve exact colors?

XnConvert Multi Platform - Windows, MacOSX, Linux
Post Reply
nathanielrh
Posts: 5
Joined: Fri Dec 06, 2019 9:06 am

Batch convert images but preserve exact colors?

Post by nathanielrh » Fri Dec 06, 2019 9:31 am

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
Attachments
2.jpg
2.jpg (66.83 KiB) Viewed 983 times
1.jpg
1.jpg (66.79 KiB) Viewed 983 times

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

Re: Batch convert images but preserve exact colors?

Post by xnview » Fri Dec 06, 2019 12:00 pm

your problem is only with DDS source?
Pierre.

nathanielrh
Posts: 5
Joined: Fri Dec 06, 2019 9:06 am

Re: Batch convert images but preserve exact colors?

Post by nathanielrh » Fri Dec 06, 2019 1:34 pm

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!
Last edited by nathanielrh on Fri Dec 06, 2019 8:43 pm, edited 1 time in total.

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

Re: Batch convert images but preserve exact colors?

Post by xnview » Fri Dec 06, 2019 3:24 pm

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?
Pierre.

nathanielrh
Posts: 5
Joined: Fri Dec 06, 2019 9:06 am

Re: Batch convert images but preserve exact colors?

Post by nathanielrh » Fri Dec 06, 2019 8:49 pm

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 911 times
1_XnConvertDDStoPNG (COLOR WRONG).png
1_XnConvertDDStoPNG (COLOR WRONG).png
1_XnConvertDDStoPNG (COLOR WRONG).png (128.54 KiB) Viewed 911 times
1_XnConvertPNGtoPNG (COLOR GOOD).png
1_XnConvertPNGtoPNG (COLOR GOOD).png
1_XnConvertPNGtoPNG (COLOR GOOD).png (96.49 KiB) Viewed 911 times

nathanielrh
Posts: 5
Joined: Fri Dec 06, 2019 9:06 am

Re: Batch convert images but preserve exact colors?

Post by nathanielrh » 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?)

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

Re: Batch convert images but preserve exact colors?

Post by xnview » Wed Dec 11, 2019 12:50 pm

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?
Pierre.

nathanielrh
Posts: 5
Joined: Fri Dec 06, 2019 9:06 am

Re: Batch convert images but preserve exact colors?

Post by nathanielrh » Wed Dec 11, 2019 8:10 pm

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.
Attachments
DDS inside Zip for xnview forums.zip
(19.78 KiB) Downloaded 15 times

Post Reply