Download
(875Kb)
Download
Updated: 11-22-10 01:24 PM
Pictures
File Info
Updated:11-22-10 01:24 PM
Created:11-20-10 02:29 PM
Downloads:7,304
Favorites:19
MD5:

Blpc  Popular! (More than 5000 hits)

Version: 1.1
by: hankthetank [More]



Blp2 texture viewer and converter with a graphical interface. Full source included (C#).

Features

  • Supports a variety of formats for viewing and saving:
    • Blp2 textures
      • Dxt1, 3 & 5
      • Raw1 (indexec colors)
      • Raw3 (32bpp)
    • GDI+ formats
      • Png
      • Jpeg
      • Gif
      • Bitmaps, Icons
      • Emf, Wmf
      • Tiff
  • Mipmap creation
  • Decent color quantization for Raw1 files using NeuQuant and Floyd-Steinberg dithering
  • Automatic resizing for Blp conversion when necessary
  • Batch conversion
  • Optional file type association
  • Short guideline included to shed some light on the various texture types
  • Open source (full C# code included in download)
    • Simple class integration in your C# projects
    • MIT license

Prerequisites
Requires Microsofts .Net Framework 4.0, Windows Installer 3.1 and Libsquish (included).


Known issues
  • This is not Photoshop. Converting huge textures (e.g. 2048x2048) can take some time depending on your texture type. Textures of more common dimensions should be converted almost instantly though.
  • Jpeg encoded Blp textures NYI. Tell me if you find an example within the WoW data files.


Using cBlp2 in your projects

Handling blp files with the Blp2 class is quite simple:

Code:
using MDS.cBlp2;
using System.Drawing;

...

Blp2 myBlp = Blp2.FromFile(@"C:\test.blp");
Bitmap myBmp = (Bitmap)myBlp;
// Do stuff
Code:
myBlp = Blp2.FromFile(@"C:\test.png");
myBlp.Save(@"C:\test.blp", LibSquish.DxtFormat.Dxt3, Blp2.ResizeMethod.Extend, true);
myBlp.Save(@"C:\test2.jpeg", System.Drawing.Imaging.ImageFormat.Jpeg);
For more information rummage through the hopefully well documented Blp2 class or take a look at the implementation in Blpc.

1.1
  • Batch conversion
  • Bugfixes
Post A Reply Comment Options
Unread 11-20-10, 02:47 PM  
hankthetank
A Theradrim Guardian
 
hankthetank's Avatar
AddOn Author - Click to view AddOns

Forum posts: 64
File comments: 132
Uploads: 6
Alright, validating this upload was quick. I guess already having some projects here really speeds things up.

As usual: If you find any bugs, and since I didn't invest too much time in testing I'm sure there are plenty of them, use the bug tracker on my author's portal.
Report comment to moderator  
Reply With Quote
Unread 11-20-10, 03:19 PM  
Dawn
A Molten Giant
 
Dawn's Avatar
AddOn Author - Click to view AddOns

Forum posts: 918
File comments: 959
Uploads: 22
It would be really cool if you could extend this into a batch converter for BLP > PNG and vice versa. Especially if it also works for A LOT (*) of files at once, which is where other converters fail.


(*) up to 2000 should do it for a 3-4 step conversion of all WoW icons *cough*
__________________
Rock: "We're sub-standard DPS. Nerf Paper, Scissors are fine."
Paper: "OMG, WTF, Scissors!"
Scissors: "Rock is OP and Paper are QQers. We need PvP buffs."

"neeh the game wont be remembered as the game who made blizz the most money, it will be remembered as the game who had the most QQ'ers that just couldnt quit the game for some reason..."

Report comment to moderator  
Reply With Quote
Unread 11-20-10, 03:30 PM  
hankthetank
A Theradrim Guardian
 
hankthetank's Avatar
AddOn Author - Click to view AddOns

Forum posts: 64
File comments: 132
Uploads: 6
Shouldn't be that hard to implement.
Last edited by hankthetank : 11-22-10 at 02:45 PM.
Report comment to moderator  
Reply With Quote
Unread 11-20-10, 08:11 PM  
Sojik
A Wyrmkin Dreamwalker
 
Sojik's Avatar
AddOn Author - Click to view AddOns

Forum posts: 53
File comments: 166
Uploads: 10
It would be really cool if you could extend this into a batch converter for BLP > PNG and vice versa. Especially if it also works for A LOT (*) of files at once, which is where other converters fail.


(*) up to 2000 should do it for a 3-4 step conversion of all WoW icons *cough*
Second'd. I'm able to get the other batch converter on here to handle about 8000 files at once but it does freeze up a little bit.
Report comment to moderator  
Reply With Quote
Unread 11-20-10, 08:35 PM  
Dawn
A Molten Giant
 
Dawn's Avatar
AddOn Author - Click to view AddOns

Forum posts: 918
File comments: 959
Uploads: 22
Originally posted by Sojik
Second'd. I'm able to get the other batch converter on here to handle about 8000 files at once but it does freeze up a little bit.
Which one and most importantly ... how?
__________________
Rock: "We're sub-standard DPS. Nerf Paper, Scissors are fine."
Paper: "OMG, WTF, Scissors!"
Scissors: "Rock is OP and Paper are QQers. We need PvP buffs."

"neeh the game wont be remembered as the game who made blizz the most money, it will be remembered as the game who had the most QQ'ers that just couldnt quit the game for some reason..."

Report comment to moderator  
Reply With Quote
Unread 11-21-10, 04:38 PM  
Sojik
A Wyrmkin Dreamwalker
 
Sojik's Avatar
AddOn Author - Click to view AddOns

Forum posts: 53
File comments: 166
Uploads: 10
Originally posted by Dawn
Which one and most importantly ... how?
BLiPster Graphical BLP Utility which uses BLPConverter. I've run all the 64x64 pixel icons through that a few times and there are about 7940 of those. It locked up a few times though and makes your computer pretty much useless till it's done -- uses alot of CPU. Now I split up my batch converting to just a few thousand files at a time.

EDIT: XnView will convert BLPs to PNGs but I've found it regularly will remove the alpha channel unintentionally. Plus it won't convert them back into BLPs.
Last edited by Sojik : 11-21-10 at 04:42 PM.
Report comment to moderator  
Reply With Quote
Unread 11-22-10, 01:26 PM  
hankthetank
A Theradrim Guardian
 
hankthetank's Avatar
AddOn Author - Click to view AddOns

Forum posts: 64
File comments: 132
Uploads: 6
I have added a batch conversion dialog. Tell me what you think or if your computer blows up during conversion. I've tested it a couple of times with around 20.000 files (complete \Interface\ tree).
Last edited by hankthetank : 11-22-10 at 01:48 PM.
Report comment to moderator  
Reply With Quote
Unread 11-22-10, 06:22 PM  
Sojik
A Wyrmkin Dreamwalker
 
Sojik's Avatar
AddOn Author - Click to view AddOns

Forum posts: 53
File comments: 166
Uploads: 10
Originally posted by hankthetank
complete \Interface\ tree
Wow. I'll test it out when I get a chance.
Report comment to moderator  
Reply With Quote
Unread 01-24-11, 11:06 AM  
Sojik
A Wyrmkin Dreamwalker
 
Sojik's Avatar
AddOn Author - Click to view AddOns

Forum posts: 53
File comments: 166
Uploads: 10
Used the batch conversion when updating my icon replacement projects. Worked great. Better than the program I was using before. Thanks.
Report comment to moderator  
Reply With Quote
Unread 04-06-11, 07:33 AM  
tinyu
A Molten Giant
 
tinyu's Avatar
AddOn Author - Click to view AddOns

Forum posts: 837
File comments: 374
Uploads: 13
would be awesome if you could convert back to BLP with this tool

Edit: also needs .TGA support.
__________________
"There's no such thing as too many addons."
Lothaer
Titan Dev Team Member.
Last edited by tinyu : 04-08-11 at 10:16 AM.
Report comment to moderator  
Reply With Quote
Unread 04-10-11, 08:46 AM  
hankthetank
A Theradrim Guardian
 
hankthetank's Avatar
AddOn Author - Click to view AddOns

Forum posts: 64
File comments: 132
Uploads: 6
Originally posted by tinyu
would be awesome if you could convert back to BLP with this tool

Edit: also needs .TGA support.
I dont know where your problem lies. Just open some image and select Save as->"Blp texture". You have a point with TGA support though.
Last edited by hankthetank : 04-10-11 at 08:54 AM.
Report comment to moderator  
Reply With Quote
Unread 07-01-12, 10:51 PM  
Gethe
RealUI Developer
 
Gethe's Avatar
Featured Addon Author

Forum posts: 942
File comments: 122
Uploads: 12
Thank you so much for this program. Every other converter I've used left noticeable artifacts or banding, but with this everything was completely smooth. My OCD and I thank you.
Report comment to moderator  
Reply With Quote
Unread 10-30-14, 12:58 PM  
Gethe
RealUI Developer
 
Gethe's Avatar
Featured Addon Author

Forum posts: 942
File comments: 122
Uploads: 12
While iterating on a texture, I usually leave Blpc up with a batch convert open. What i've found though is that for each "round", the conversion list gets added to the previous. This means that each time I perform a batch convert, it will do the batch n + 1 times, where n == the number of previous batches.

This will behavior will reset if I close the batch and reselect, but to be honest it's fairly cumbersome to have to reselect the folders each time. This is especially true since Blpc doesn't "remember" the folder(s) you were previously working in.
__________________
Knowledge = Power; Be OP

Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump:

Support AddOn Development!

You have just downloaded by the author . If you like this AddOn why not consider supporting the author? This author has set up a donation account. Donations ensure that authors can continue to develop useful tools for everyone.