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

Discussion in 'Basic' started by xKrazyx, Sep 4, 2018.

Tags:
  1. xKrazyx

    xKrazyx Old School

    Joined:
    Oct 23, 2012
    Messages:
    705
    Likes Received:
    359
    Best Answers:
    2
    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.
    [​IMG]

    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.

    [​IMG]
    Simple and easy.

    Have a good one.
     
  2. tjafs

    tjafs Oldera.Net 7.7 Start Soon /War Edition

    Joined:
    Nov 12, 2017
    Messages:
    205
    Likes Received:
    79
    Best Answers:
    0
    Good to know!
     
  3. Felipe93

    Felipe93 Ghost Member

    Joined:
    Mar 21, 2015
    Messages:
    1,006
    Likes Received:
    129
    Best Answers:
    3
    thanls for share this c:
     

Share This Page

Loading...