Artifacts when converting PNG to JPG
Posted: 2014-09-16T03:27:12-07:00
I am currently working on automatically converting PNG to JPG files.
The two files I attached show the original PNGs.
I am trying to make a similar JPG. The simplified commands I use are as follows:
The outputs are (for both PNGs mentioned above):
Only output #3 is correct. I would expect that the output for at least the first command should be the same as for the third?
The problem I am facing is that I can't use the command #2 or #3 because I remember having other problems with different PNGs. (If this is really relevant, I will search again for those and post them here).
So I am stuck with using version #1.
Can anybody point me in the correct direction to which command I should really be using for PNGs?
Thanks in advance!
The two files I attached show the original PNGs.
I am trying to make a similar JPG. The simplified commands I use are as follows:
Code: Select all
convert.exe "a.png[0]" "1.jpg"
convert.exe "a.png" "2.jpg"
convert.exe "a.png" -flatten "3.jpg"
Only output #3 is correct. I would expect that the output for at least the first command should be the same as for the third?
The problem I am facing is that I can't use the command #2 or #3 because I remember having other problems with different PNGs. (If this is really relevant, I will search again for those and post them here).
So I am stuck with using version #1.
Can anybody point me in the correct direction to which command I should really be using for PNGs?
Thanks in advance!