• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

Icons with swapped red and blue colors

Status
Not open for further replies.
Level 15
Joined
Nov 23, 2008
Messages
187
I don't know, was the same problem discussed or not, but I have to post here.

The image generated by Hive (for uploaded icon) is not the same as BLP file contains. It has swapped red and blue colors.

Examples: BTNSourceFix, BTNSharkPirate, BTNSpell1

In fact, The Hive incorrectly read that type of icons, not bordering programs generate inverted ones. I should notice that examples listed above are correctly opened with war3viewer and looks normal in-game.

I have an explanation for this bug:
There are two types of BLP (used in Warcraft) - compressed BLP (which uses jpeg compression), and paletted BLP (have similar structure as in paletted TGA). The problem with reading paletted BLPs. Magos wrote in his BLP file specification:
Each cell in the index list refers to a location in the palette where the corresponding RGBA value is.
but in fact the palette consists of BGRA cells. That's why red and blue colors are inverted.

I think, fixing that bug would not take much time. Thanks.
 
So the solution is 'Wait untill its fixed'?
I'd recommend to wait. Of course, you can save your BLPs in compressed format (with jpeg compression). But the size reduction in MPQ would be minimal (1-7%), and the annoying jpeg artifacts would appear when reducing quality.

Uncompressed BLPs have better color reproduction, constant size (independent from image quality) and putting them into archive (MPQ) drastically reduce their size (roughly 30-50% ratio).
 
Status
Not open for further replies.
Back
Top