• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

What do you use to compress BLPs?

Status
Not open for further replies.
Level 65
Joined
Dec 23, 2013
Messages
1,406
I am having some wildly unnecessary absolutely mad problems with compressing a skin, 'tis a 256x256 picture that when default was 41kb, is now 215kb, and none of the compression techniques I have tried have worked.

Tried and Failed
-------------------
-WC3 Image Extractor save as 75%
-GIMP2 compression level 9 when saving
-Reducing of the number of colors

Here is the skin.

http://www.hiveworkshop.com/forums/pastebin.php?id=gnergq

Whitecloak.jpg


Original Texture base

TempleKnight.jpg
 

Dr Super Good

Spell Reviewer
Level 63
Joined
Jan 18, 2005
Messages
27,192
Icons should use palleted colours for compression. Since they are small and often have a background they compress very well when placed in the MPQ archive (do note that palleted images will be big outside the archive but generally compress well in the archive due to them being uncompressed data). As such you actually need to test out importing them to know the real size of the image.

Complicated "skin" textures generally are compressed with JPEG compression. Since JPEG is a compressed format the resulting image can be considered already compressed so any compression in the MPQ archive is minimal/non-existant. As such the file you get is the size final size.

BLP should also support various "real-time" compressions which are common use in modern day graphic processing. However I am unsure if these were only added with legacy World of Warcraft (I think they moved formats from blp since then) or if Warcraft III had them already. These generally do not compress as well as JPEG and palleted can but they are faster to load and generally higher quality (as well as more efficient for GPU memory as they can remain compressed).

Do keep in mind that all of them are lossy compression. Palleted will cause colour banding similar to topography chart. JPEG will cause JPEG compression artefacts which are usually 8*8 pixels but can be larger (up to 32*32 I think) depending on the exact compression block size used. The real-time texture compression results in a consistent loss in colour quality as it usually combines multiple pixels into a single value.
 
Status
Not open for further replies.
Top