Page 2 of 3
Re: swap colors/channels
Posted: 2012-09-22T10:21:42-07:00
by fmw42
Tosyk wrote:thank you, but i keep getting those artifacts
My result is perfectly fine on IM 6.7.9.6 Q16 Mac OSX Snow Leopard. What version of IM are you using and what platform?
Re: swap colors/channels
Posted: 2012-09-22T10:29:58-07:00
by Tosyk
i'm useing latest 6.7.9-4 version on win 7 x64
don't know what cause this strange dots over the image
Re: swap colors/channels
Posted: 2012-09-22T10:35:44-07:00
by fmw42
I edited my post above to show you the result.
Did you change the code from unix syntax to windows syntax?
What was your exact command line converted from mine?
Re: swap colors/channels
Posted: 2012-09-22T19:25:56-07:00
by Tosyk
fmw42 wrote:I edited my post above to show you the result.
it looks great
fmw42 wrote:Did you change the code from unix syntax to windows syntax?
ah, no
fmw42 wrote:What was your exact command line converted from mine?
same as yours:
Code: Select all
convert Tex_0807_4.dds -channel rgba -separate +channel -swap 1,3 +delete -combine -channel B -evaluate set 100% +channel -colorspace sRGB Tex_0807_4_swap.png
maybe we can debugging somehow this process? because it's really strange
Re: swap colors/channels
Posted: 2012-09-22T19:39:39-07:00
by fmw42
In windows, you need to escape % as %%. Please review
http://www.imagemagick.org/Usage/windows/
convert Tex_0807_4.dds -channel rgba -separate +channel -swap 1,3 +delete -combine -channel B -evaluate set 100
%% +channel -colorspace sRGB Tex_0807_4_swap.png
Re: swap colors/channels
Posted: 2012-09-22T20:02:44-07:00
by Tosyk
fmw42 wrote:In windows, you need to escape % as %%. Please review
http://www.imagemagick.org/Usage/windows/
convert Tex_0807_4.dds -channel rgba -separate +channel -swap 1,3 +delete -combine -channel B -evaluate set 100
%% +channel -colorspace sRGB Tex_0807_4_swap.png
it's true but, doesen't work for me either
but useing command:
gives me an alpha with those artifacts, does it make sense?
Re: swap colors/channels
Posted: 2012-09-22T20:37:59-07:00
by fmw42
Sorry, I am out of ideas. The -channel rgba -separate was needed for my code to work. I do not know why it does not work for you. Perhaps you need to upgrade your libpng?
convert -list format
shows
PNG* PNG rw- Portable Network Graphics (libpng 1.4.11)
What version are you using?
Or try saving to gif or jpg or tif and see if that makes a difference.
Re: swap colors/channels
Posted: 2012-09-22T22:02:59-07:00
by Tosyk
i installed latest IM 6.7.9.7 Q16 and trying with many nothing helps, damn((
and png:
PNG* rw- Portable Network Graphics (libpng 1.5.11)
oh maan, what can we do?
really losing my faith in convert.exe
p.s.:i remember that i'm useing it for year ago or something for extracting alpha and it works
Re: swap colors/channels
Posted: 2012-09-22T22:20:12-07:00
by fmw42
try saving to gif or jpg or tif and see if that makes a difference
Re: swap colors/channels
Posted: 2012-09-22T23:45:40-07:00
by Tosyk
fmw42 wrote:try saving to gif or jpg or tif and see if that makes a difference
works the same
Re: swap colors/channels
Posted: 2012-09-23T11:27:32-07:00
by fmw42
Perhaps Anthony can shed some light. Perhaps my command line is not fully proper.
Also perhaps some other kind Windows user can try this and see if they get your results or not. It could be a Windows only bug.
Re: swap colors/channels
Posted: 2012-09-23T18:00:36-07:00
by Tosyk
fmw42 wrote:Perhaps Anthony can shed some light. Perhaps my command line is not fully proper.
don't know this person
fmw42 wrote:Also perhaps some other kind Windows user can try this and see if they get your results or not. It could be a Windows only bug.
so, i've check it on my work machine and the result is same, but method above working well with .tga textures, but not with .dds, that's odd
i've just converted those .dds files into .tga and .tga works great, without any artifacts at all, so probably problem in my .dds stuff on my pc, or something like that
any thoughts?
Re: swap colors/channels
Posted: 2012-09-23T18:14:19-07:00
by fmw42
Anthony is one of the IM developers. He is very knowledgeable about the command line.
I suppose it could be a bug on the Windows side for reading .dds files? I would suggest you post your issues and the fact that it works fine on other formats for the input to the Bugs forum with your example image and the command line that works on other input format.
Re: swap colors/channels
Posted: 2012-09-23T18:42:41-07:00
by anthony
Thye look like cell bit order was reversed. Perhaps the alpha channel is not being decoded in-correctly for .dds files
Alpha is hard to see, and it may have slipped under the radar, by the developer of that codec.
But as it seems to be different for different machines. The next thing to try is turning off any multi-threading (on both computers). That can cause weird randomizations when something goes wrong.
If that fails, then it either delegate library, or some OS/Processor specific fault, though that last is unlikely.
This has been posted on the bugs discussion.
Re: swap colors/channels
Posted: 2012-09-23T18:43:58-07:00
by Tosyk
thank you
fmw42
posted
here
Will post solution here if IM developers will help me