Page 1 of 1

Issue with resize percentage (DDS)

Posted: 2015-04-27T23:16:23-07:00
by LDAsh
Hi folks, I have been trying to figure this out all morning.

I'm trying to convert a bunch of DDS files by 50% and retain their DXT type, their type of alpha, because they are mixed. Here is my command:-

Code: Select all

mogrify *.dds -resize 50% -filter Mitchell -sharpen 1 *.dds
but here's how it looks in the DOS window:-

Code: Select all

C:\decals>mogrify -resize 50 -filter Mitchell -sharpen 1 *.dds
I've tried a few combinations, 50%, 50x50%, 50%x50%. The result is either no change in size, or all become 50x50 pixels. I can't get them down to 50% no matter what I try. Not sure if it's because of my source (DDS) images, the software itself or something with my .BAT file.

Any suggestions?
Thanks.

Re: Issue with resize percentage (DDS)

Posted: 2015-04-27T23:45:02-07:00
by snibgo
In a BAT file, % is a special character. It is a prefix to an argument, eg %1, %2. So you need to double yours: 50%%.

Re: Issue with resize percentage (DDS)

Posted: 2015-04-28T08:50:50-07:00
by tom_dl
Also, is your -filter aimed at the -resize command? If so, it should appear before, not after:

Code: Select all

mogrify *.dds -filter Mitchell -resize 50%% -sharpen 1 *.dds

Re: Issue with resize percentage (DDS)

Posted: 2015-04-29T12:40:17-07:00
by LDAsh
Thanks a million for the help. Seems to be working now, although I didn't test them in-game yet, I thank you very much anyway. :)
________

Just wanted to post a follow-up that I've tested the assets in the game engine - we didn't get any errors at all and they are all rendering as they should, as their original DXT types. Very good!