[haiku-development] Re: Tracker old BeOS icon resizing

  • From: Stephan Aßmus <superstippi@xxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Tue, 11 Jan 2011 08:30:27 +0100

Hi,

Am 11.01.2011 06:45, schrieb John Scipione:
I am working on doing some icon resizing work and while the new hvif
Haiku icons are trivial to resize old BeOS icons look ugly when
upsized. I began investigating using hqx to upsize the icons when I
realized that the tracker must upsize BeOS icons! And in fact it does.
Can somebody knowledgable in this area stippi? point me to where in
the tracker source this is happening? Thanks.

John Scipione

Sorry to reply to my own post but some good news and bad news.

The bad news is that on further investigation I found that Tracker is
actually doing no BeOS icon upsizing, it is just scaling the 32x32 pixel
B_LARGE_ICON where I was scaling the 16x16 B_MINI_ICON.

The good news is that by utiling the LGPL licensed hqx algorithm
(http://code.google.com/p/hqx/) I could theoretically get nice looking
BeOS icons as large as 128x128!

Worth it? LGPL a problem?

If it's easy to integrate, it could be a nice touch. Obviously the real goal should be to recreate all BeOS icons as HVIF. LGPL would not be a problem if the library remains a library. You must decide if it's worth your time. Do you have some screenshots of original and hqx upscaled bitmaps? From the page you linked, it sounds like it only supports exact scaling factors of 2x, 3x and 4x. Which would be a bummer (having to fall back to other algorithms for other scales). But maybe it could improve the common case a lot.

Best regards,
-Stephan

Other related posts: