Download
(187Kb)
Download
Updated: 09-14-08 09:15 PM
Pictures
File Info
Updated:09-14-08 09:15 PM
Created:unknown
Downloads:52,687
Favorites:62
MD5:

BLP2PNG  Popular! (More than 5000 hits)

Version: 1.2
by: mundocani [More]

IMPORTANT

BLP2PNG is obsolete. The sources have aged and the project no longer builds correctly. There is another tool which is nice and works very well named BLPNG and it's also here on WoW Interface. I recommend it and I've been using it for my addon development lately instead of my own tool.

If you're still wanting to play with BLP2PNG, here's the old description/instructions:

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
Unread 09-01-16, 02:21 PM  
Tim
A Rage Talon Dragon Guard
 
Tim's Avatar
AddOn Author - Click to view AddOns

Forum posts: 309
File comments: 105
Uploads: 11
Yep! I'm getting issues with using this now.

When converting png to blp the file I drag & drop hangs and the BLP2PNG command prompt window takes about 10 seconds before it closes. Upon loading up wow either the image is totally borked and causes wow to fatal error when zoning in or the image gets created but, is all distorted.
Report comment to moderator  
Reply With Quote
Unread 07-27-16, 05:01 PM  
lieandswell
A Cyclonian
 
lieandswell's Avatar
AddOn Author - Click to view AddOns

Forum posts: 45
File comments: 43
Uploads: 11
Originally Posted by mundocani
grayscale PNGs with transparancy may not work
I'm having this problem with a PNG that's all white with different transparency values (like for a shine effect). The semi-transparent white parts become grey. I'm using the OS X version.
__________________
1/5 15:55:46.001 UNIT_DIED, 0x0000000000000000, nil, 0x80000000, 0xF130001942161FB7, "Gamon", 0xa28
Report comment to moderator  
Reply With Quote
Unread 09-26-11, 02:45 PM  
jeffy162
A Pyroguard Emberseer
 
jeffy162's Avatar
AddOn Author - Click to view AddOns

Forum posts: 2364
File comments: 116
Uploads: 11
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]
Carbonite <----- GitHub main module (Maps ONLY) download link. The other modules are also available on GitHub.
Carbonite-CLASSIC<----- GitHub link to Carbonite Classic. Thanks to ircdirk for this!
Last edited by jeffy162 : 09-29-11 at 10:56 AM.
Report comment to moderator  
Reply With Quote
Unread 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!
Report comment to moderator  
Reply With Quote
Unread 12-10-10, 01:06 PM  
mundocani
A Defias Bandit
AddOn Author - Click to view AddOns

Forum posts: 3
File comments: 434
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
Report comment to moderator  
Reply With Quote
Unread 12-10-10, 01:02 PM  
mundocani
A Defias Bandit
AddOn Author - Click to view AddOns

Forum posts: 3
File comments: 434
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.
Report comment to moderator  
Reply With Quote
Unread 05-14-10, 06:08 PM  
mankeluvsit
An Onyxian Warder
 
mankeluvsit's Avatar

Forum posts: 354
File comments: 46
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? [:
Report comment to moderator  
Reply With Quote
Unread 04-12-10, 03:43 AM  
Flaster
A Fallenroot Satyr
 
Flaster's Avatar

Forum posts: 20
File comments: 12
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.
Report comment to moderator  
Reply With Quote
Unread 01-08-10, 07:38 AM  
goldengamer
A Fallenroot Satyr

Forum posts: 22
File comments: 90
Uploads: 0
Alas, mines not loading =( Just discovered it, and yeah :S
Report comment to moderator  
Reply With Quote
Unread 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!
Report comment to moderator  
Reply With Quote
Unread 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?
Report comment to moderator  
Reply With Quote
Unread 11-22-08, 12:32 AM  
Dreadlorde
A Pyroguard Emberseer
 
Dreadlorde's Avatar
AddOn Author - Click to view AddOns

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

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

Forum posts: 3
File comments: 434
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.
Report comment to moderator  
Reply With Quote
Unread 01-02-08, 12:35 PM  
mundocani
A Defias Bandit
AddOn Author - Click to view AddOns

Forum posts: 3
File comments: 434
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
Report comment to moderator  
Reply With Quote
Unread 04-09-07, 01:53 PM  
Ahm
A Fallenroot Satyr
AddOn Author - Click to view AddOns

Forum posts: 20
File comments: 64
Uploads: 6
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.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: