Advertisement

BLP2PNG

  Download the Curse Client

Last Update: Feb. 12, 2007 (1 year ago)
Category: Development & Debugging
Tags: developer and tools
Project Manager: Mundocani
Current Version: BLP2PNG 1.1
(for World of Warcraft 2.0.6)
Downloads Today: 11
Downloads Total: 7,646
Favorites: 24
Comments: 28
  • About BLP2PNG
  •  

IMPORTANT

BLP2PNG does not have a graphical user interface. You can drag-and-drop files onto it and it will convert them, or you can use it from command-line environments such as development tools (as I do). If you're looking for a tool with a file picker and buttons this isn't it.

Description

This tool is used for converting bi-directionally between BLP and PNG images. The tool fully supports alpha channels and can be used as a drag-and-drop converter or from the command line. It can also convert your existing TGA files to PNG.

BLP2PNG will convert the file based on the original type:

  • BLP are converted to PNG
  • BMP are converted to PNG
  • TGA are converted to PNG
  • PNG are converted to BLP

Why PNG when everybody uses TGA?

PNG is a modern image format and is better supported by more tools and even most web browsers. Support for PNG in Photoshop is much better than it is for TGA, which makes editing high-quality textures for addons a lot easier. If you prefer working in TGA then by all means keep using the many existing tools for converting those images. I use this tool for converting WoW's artwork to PNG so I can use it as a reference for my own artwork. I also use this tool to convert my own artwork to BLP files for use in my addons, including GroupCalendar and Outfitter. If you prefer PNG like I do, this tool will make things much easier for you.

  • Downloads (2)
  •  
Advertisement

You need to login or register to post comments.

Benefits of Registration

  • Interact with hundreds of thousands of other gamers on an open social network.
  • Post your stories, news, images, videos, and other content to share.
  • Create a network with your fellow gamers or join an existing one.
  • Gain reputation for everything you do.
 
  • Dec. 12, 2007, 12:47AM (7 months, 1 week ago)

    I use it under Vista routinely and don't know of any issues.

    Some people expect BLP2PNG to have a GUI, but this tool is intended to be used as a drag-and-drop converter or called from within a development environment such as Visual Studio. Be sure to read the included notes on how it works.

  • July 24, 2007, 04:49AM (12 months ago)

    doesnt run on vista that i can figure out.

  • Feb. 12, 2007, 07:07PM (1 year, 5 months ago)

    Version 1.1 changes

    - Supports DirectX 4/5 texture compression used in WoW 2.0

  • Jan. 4, 2007, 03:51AM (1 year, 6 months ago)

    Version 1.0.5 changes

    - Fixed bug with color palette on 1-bit alpha images

    (sorry for not noticing that curse had hosed its own copies of previous versions, I don't actually check this project page very often)

  • June 23, 2006, 12:01PM (2 years ago)

    Good program, but it would be very kind to add a GUI, and to document the commands... With my explorer program (SpeedCommander) I cannot drag&drop the blp on the exe and I don't want to use the normal explorer...

    Thanks!

  • June 25, 2006, 06:16AM (2 years ago)

    I've installed this, but it doesn't seem to do anything. There's no --help type option to see if i'm running the command correctly either.

    i've tried BLP2PNG somefile.blp BLP2PNG somefile.blp somefile.png

    i've run "strings" on the exe to see if there were any clues to how to use it. i've run it from a DOS shell, and a cygwin bash shell.

    it just always immediately comes back with nothing. From the cygwin bash prompt I get a return code of 255 (-1).

    any chance of the source being released so i can try compiling under my cygwin shell?

    addendum: ok, finally got it to work by drag/dropping the blp onto the exe, and it created the file in the same dir. was my file being created from the command line too, but i just couldn't find it?


    tia, Mark

  • June 25, 2006, 10:25AM (2 years ago)

    The readme.txt file included in the archive includes instructions for using it from the command line. From the readme:

    ----------------------------
    Command line operation
    ----------------------------

    BLP2PNG.exe file [-o folder]

    file Specifies the file you want to convert
    folder Specifies the folder you want the output file placed in. The file will have the same name as the original but with the new extension. If this folder isn't specified then the file will be placed in the same folder as the original

  • June 25, 2006, 12:15PM (2 years ago)

    hmm, the download is only the exe, there is no archive that i can see. thanks for clarifying the issue though. useful addon.

  • June 25, 2006, 01:02PM (2 years ago)

    Ah crap, I meant to upload the .zip file not the .exe itself. Sorry about that :P

  • June 25, 2006, 05:00PM (2 years ago)

    I've uploaded the correct file this time, a .zip archive which includes a readme with some instructions. The .exe is the exact same one as before.

  • June 26, 2006, 03:36AM (2 years ago)

    fantastic, thanks!

    edit: the -o option doesn't work for me, only the drag 'n drop.

    and the notes say

          "If this folder isn't specified
          then the file will be placed in the same folder as the 
          original"
    

    which doesnt happen either.

    it's not a drastic problem, i'm not batch converting them. would be nice to find out why it's not working in command line mode at all though (for me). I looked on my entire filesystem and didn't find the converted file anywhere.

  • June 28, 2006, 01:42AM (2 years ago)

    > the -o option doesn't work for me, only the drag 'n drop.

    Hm, that's strange since I use it almost exclusively in command line mode myself (except when extracting Blizzard's artwork).

    It sounds like something is wrong with the way the source file is specified. Since I use it in a limited environment it's very possible there's a bug with handling deviations from how I normally invoke it. Try using a full path to specify the source file and see if that works.. Also, are there spaces in the path? Maybe quoted parameters aren't working properly. Not sure what else to check, but I'll keep my eyes open.

  • June 28, 2006, 05:11PM (2 years ago)

    I have Png Files I have created using Gimp 2.2 I run BLP2PNG levitate.png and I get nothing. Any idea why?

    Edit: maybe I am doing it wrong but the command line doesnt work and neither does the drag and drop.

  • June 29, 2006, 06:06PM (2 years ago)

    > I have Png Files I have created using Gimp 2.2 I run BLP2PNG levitate.png and I get nothing. Any idea why?

    Make sure your image width and height is a power of two (2, 4, 8, 16, 32, etc.). They don't have to be the same (ie, 32 by 128 is fine), but they must be a power of two.

    Also try using the full pathname instead of the just the file name and see if that works. I may have a bug where implicit pathnames don't work.

    > Edit: maybe I am doing it wrong but the command line doesnt work and neither does the drag and drop.

    When you drag-and-drop the file there's not a file named levitate.blp created in the same folder?

    If you'd like I can look at your file and see if there's something unusual about the way Gimp is creating PNGs. Mail it to blp2png@$$removethis$$johnstephen.org and just remove the $$removethis$$ part. I'll take a look and try to figure out why it's failing.

  • June 30, 2006, 11:04AM (2 years ago)

    Invoking from the command line appears to require full pathnames to use (I normally invoke this tool from VisualStudio which always provides full pathnames for paramters). I'll get this corrected so that it finds the file in the current working directory if a full pathname isn't specified.

  • June 30, 2006, 12:21PM (2 years ago)

    This version should now resolve partial pathnames correctly when used from the command line as well as properly displaying error messages to the output window. Unfortunately this also means that it flashes a console window on the screen when used in drag-and-drop mode (it'll just appear and disappear, no need to actually close it or anything).

    Maybe someday I'll be smart enough to figure out how to make an application which works well both when used from the command line AND from the Windows GUI <sigh>

  • Sept. 29, 2006, 08:19PM (1 year, 9 months ago)

    Thanks Baylord of Thunderlord (Mundocani)

    )
  • Nov. 13, 2006, 05:47PM (1 year, 8 months ago)

    Version 1.0.2 Changes:

    - Handles uncompressed BLP with 1 bit alpha correctly (used mostly by Blizzard's cursor icons)

  • Nov. 13, 2006, 10:33PM (1 year, 8 months ago)

    Well this behaves strangely when run (and makes me nervous). All I get is a flash of a command prompt screen then it closes and nothing. No converter, no dialog boxes... nothing. Please explain how do make this work.

  • Nov. 15, 2006, 09:31PM (1 year, 8 months ago)

    I think you can use it from the command line, but I don't know the syntax. The easiest way is just to drag-and-drop BLPs or PNGs or TGAs or BMPs onto the program, and it'll spit out a converted PNG or BLP file.

 
  • Similar Tools
  •  
  1. 329 Ace2 / Ace Development & Debugging
  2. 239 Cosmos feat. Khaos Development & Debugging
  3. 69 BugSack Development & Debugging
  4. 32 MpqViewer Development & Debugging and ...
  5. 26 Wow Log Parser Development & Debugging, ...
Advertisement