Download
(187 Kb)
Download
Updated: 09-14-08 09:15 PM
Pictures
File Info
Updated:09-14-08 09:15 PM
Created:unknown
Downloads:21,001
Favorites:55
MD5:
BLP2PNG  Popular! (More than 5000 hits)
Version: 1.2
by: mundocani [More]
IMPORTANT

BLP2PNG does not have a graphical user interface. You can drag-and-drop files or folders 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

If you drop a folder onto it, it will recursively convert every BLP image in the folder to a PNG. This is very handy for mass-converting the Blizzard artwork folder after a new patch.
Version 1.2 changes:

- Added ability to drag-and-drop entire folders for conversion from BLP to PNG
- Added 'squish' library for compressing texture for much better results when generating BLPs
Post A Reply Comment Options
Old 09-26-11, 02:45 PM  
jeffy162
Premium Member
 
jeffy162's Avatar
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 1757
File comments: 89
Uploads: 10
I have a small problem when I convert TGA's to PNG's for converting to BLP's. For some odd reason, d+ding TGA's makes the image flip vertically when converting to PNG's. PNG to BLP works without a hitch.

Now that I know that this happens, I can flip the TGA's around accordingly before conversion, but I was just wondering if this is normal behavior.
__________________
Ahhhh, the vagueries of the aging mind. Wait.... What was I saying?

[SIGPIC][/SIGPIC]
Last edited by jeffy162 : 09-29-11 at 10:56 AM.
jeffy162 is online now Report comment to moderator  
Reply With Quote
Old 07-10-11, 04:34 AM  
rach3l
A Kobold Labourer

Forum posts: 1
File comments: 11
Uploads: 0
I LOVE you. This program is perfect. I was tearing my hair out trying to convert a blp to a viewable format before I found this. Thank you so much!
rach3l is offline Report comment to moderator  
Reply With Quote
Old 12-10-10, 12:06 PM  
mundocani
A Defias Bandit
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 428
Uploads: 6
Originally posted by mankeluvsit
seems kinda under the radar.

but ill see if i can get some help.

im trying to convert a PNG that is transparent, but when i tryto convert it to BLP it shows up black.

help? [:
You're right, this project is "under the radar" for me. It very rarely gets questions so I don't regularly check it.

Not sure why you're getting black instead of transparancy. I use this to create my BLPs for Outfitter and Group Calendar, both of which have lots of transparancies so I know it works for me.

Check the format on your PNGs, maybe there's something about them that's different than what I use. For example, grayscale PNGs with transparancy may not work. I don't know that they don't work, but I never create grayscale textures so that might be broken /shrug
mundocani is offline Report comment to moderator  
Reply With Quote
Old 12-10-10, 12:02 PM  
mundocani
A Defias Bandit
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 428
Uploads: 6
Originally posted by poseh
yes please, source code would be awesome!
Primarily it's libpng and libsquish with some custom code to read and write the BLP files. The problem with releasing source code is that over the years I built up a framework that I used for my projects. Earlier this year I started on a better framework which is much more modular, but blp2png was built using my older framework which is heavy and would have to be all released in order to compile the project. I don't care about releasing it all per-se as I don't consider it to be some sort of valuable IP or anything like that, it's just too intertwined with itself.

If I get around to it, I'll try converting this applet to use my newer framework which should make it easy to limit the source code to a small readable set of files.

Again though, the heart of it is just libpng and libsquish. Check out libsquish btw, it's pretty nice. I originally tried developing my own algorithms for the BLP compression but they were pretty mediocre. libsquish does a really nice job though.
mundocani is offline Report comment to moderator  
Reply With Quote
Old 05-14-10, 06:08 PM  
mankeluvsit
A Rage Talon Dragon Guard
 
mankeluvsit's Avatar

Forum posts: 348
File comments: 45
Uploads: 0
seems kinda under the radar.

but ill see if i can get some help.

im trying to convert a PNG that is transparent, but when i tryto convert it to BLP it shows up black.

help? [:
mankeluvsit is offline Report comment to moderator  
Reply With Quote
Old 04-12-10, 03:43 AM  
Flaster
A Fallenroot Satyr
 
Flaster's Avatar

Forum posts: 20
File comments: 13
Uploads: 0
Drag-and-drop: image1.tga to image1.png = convert.
image2.tga to image2.png = not convert.
Why?
__________________
I do not speak much English, but I try
Last edited by Flaster : 04-12-10 at 03:44 AM.
Flaster is offline Report comment to moderator  
Reply With Quote
Old 01-08-10, 06:38 AM  
goldengamer
A Fallenroot Satyr

Forum posts: 22
File comments: 93
Uploads: 0
Alas, mines not loading =( Just discovered it, and yeah :S
goldengamer is offline Report comment to moderator  
Reply With Quote
Old 09-01-09, 09:23 PM  
poseh
A Kobold Labourer

Forum posts: 0
File comments: 2
Uploads: 0
Originally posted by Dreadlorde
Any chance we could get the source code for this? I'd like to see how it works.
yes please, source code would be awesome!
poseh is offline Report comment to moderator  
Reply With Quote
Old 05-21-09, 07:12 AM  
Spahut
A Cobalt Mageweaver

Forum posts: 231
File comments: 131
Uploads: 0
Dear cool programmer,

You couldn't possible make a BLP plugin for Irfanview could you?
Spahut is offline Report comment to moderator  
Reply With Quote
Old 11-21-08, 11:32 PM  
Dreadlorde
A Pyroguard Emberseer
 
Dreadlorde's Avatar
AddOn Author - Click to view AddOns

Forum posts: 2302
File comments: 141
Uploads: 21
Any chance we could get the source code for this? I'd like to see how it works.
__________________

Funtoo - Plan 9 - Windows 7
Dreadlorde is offline Report comment to moderator  
Reply With Quote
Old 09-14-08, 09:16 PM  
mundocani
A Defias Bandit
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 428
Uploads: 6
Version 1.2 changes:

- Added ability to drag-and-drop entire folders for conversion from BLP to PNG
- Added 'squish' library for compressing texture for much better results when generating BLPs

Note that the folder drag-and-drop only converts from BLP to PNG -- it will not perform any other types of conversions (BLP->PNG, TGA->PNG, etc.). I had to restrict it because otherwise it wasn't useful for extracting the Blizzard artwork folder. If it converted anything it found then it could end up converting the PNGs back to BLPs, which would modify the original BLP files.

This version also uses the excellent libsquish for the texture compression, which produces vastly superior results than my own compression routines. Several of the textures in Outfitter and Group Calendar look better with this new library.
mundocani is offline Report comment to moderator  
Reply With Quote
Old 01-02-08, 11:35 AM  
mundocani
A Defias Bandit
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 428
Uploads: 6
BLP2PNG 1.1

Version 1.1 changes

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

Version 1.0.5 changes

- Fixed bug with color palette on 1-bit alpha images
mundocani is offline Report comment to moderator  
Reply With Quote
Old 04-09-07, 01:53 PM  
Ahm
A Fallenroot Satyr
AddOn Author - Click to view AddOns

Forum posts: 20
File comments: 83
Uploads: 7
Bugs & Feature Ideas

Personally, what I would really love is to be able to just drag my Interface folder onto the icon and have it go through all the files and convert the BLPs into PNGs so that I can use Windows Picture and Fax Viewer to actually see them. But there's a few problems:

1- It doesn't iterate through directories like that. So, it'd be great if you could add support for dropping a directory onto the program. And when someone does that, recursively iterate through the directory structure to find all the files and convert them into BLPs.

2- Another problem is that it seems to only allow you to drag 20 files at a time onto it. Every time I try 21 (or more), it gives the following error:
"Windows cannot access the specified device, path, or file. You may not have the appropriate permissions to access the item."

3- Yet another problem, when it encounters a non-BLP file, it seems to just stop (there's no error thrown or anything). Check the file header (or even the extension) and if it doesn't appear to be a BLP file then skip it and continue with the next.


So there's my feedback. I was looking for an hour or two for a tool that could actually read WoW's BLP files and yours was the only one I could find. And while I was a little hesitant about the PNG format (I generally prefer TGAs), it is quite nice being able to use the Windows Picture and Fax Viewer (which can't read TGA) instead of Photoshop to look at them. I'd definitely love to see the 2nd and 3rd things up there fixed because the tool is rather irritating at the moment. And if you could implement the 1st thing, that'd be just perfect.
Ahm is offline Report comment to moderator  
Reply With Quote
Old 12-31-06, 04:50 AM  
stopy
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
Hello
the -o option does not work when used on the dos prompt
stopy is offline Report comment to moderator  
Reply With Quote
Old 11-18-06, 04:43 AM  
Osamar
A Murloc Raider

Forum posts: 8
File comments: 42
Uploads: 0
Some images are converted mirrored on X axis from TGA 24 bits to PNG. I save them with PAINT.NET.
Osamar is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: