• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Lost Transparency in sprites? No problem. (Pink background in sprites?)

xKrazyx

Old School
Joined
Oct 23, 2012
Messages
899
Solutions
6
Reaction score
677
If you worked with a good amount of sprites in the past, you might have run into the problem of losing your files transparency a long the way. I thought I would share what I found, as I searched here for a solution and couldnt find one.

This can be a very frustrating problem that may require tedious fixing, such as deleting every portion of the pink or white background with magic eraser.

I found an easier way to hit all the files at once.
The magic program is called ImageMagick, can be found here.


Install the software.

You have the folder of broken images.
4i55f2b.png


Create a folder named batch inside the image folder.( can be named w.e you want, change in execution line tho)

From there open a command prompt and change the directory to your image folder.
"cd C:\Users\Krazy\Pictures\sprites\"

Now were gonna convert the files, run this command which applies transparency to the files(#FF00FF is the pink, can be any color).

"FOR %G IN (*.png) DO convert %G -transparent #FF00FF batch\%G"

Afterwards your files should be copied in /batch with transparency.

lpnBRLY.png

Simple and easy.

Have a good one.
 
Back
Top