Login

logo6
Welcome, Guest
Username Password: Remember me

How to add a icon to a binary (Haiku)
(1 viewing) (1) Guest
This forum is to discuss Yab related projects.

TOPIC: How to add a icon to a binary (Haiku)

Re:How to add a icon to a binary (Haiku) 4 years, 4 months ago #1303

You are wrong

3DEyes made that icon in HVIF:

see here
haikuware.com/directory/view-details/sys...s/3deyes-haiku-icons

Re:How to add a icon to a binary (Haiku) 4 years, 4 months ago #1304

  • andrewzx1
  • OFFLINE
  • Senior Boarder
  • Posts: 67
  • Karma: 0
I don't think svg is supported by Haiku, only Zeta. Is this correct?

For adding an icon to a executable you can also try QuickRes.

Re:How to add a icon to a binary (Haiku) 4 years, 4 months ago #1305

  • karl
  • OFFLINE
  • Platinum Boarder
  • Posts: 465
  • Karma: 18
adding an icon to an executable is very simple.

right click the binary, go to 'add-ons>file type'
drag and drop or copy & paste your new icon to where it shows the current icon, save, done.

i believe you're right with no svg support (except import export in icon-o-matic).

icons
Last Edit: 4 years, 4 months ago by karl.

Re:How to add a icon to a binary (Haiku) 4 years, 4 months ago #1306

  • tonestone57
  • OFFLINE
  • Senior Boarder
  • Posts: 72
  • Karma: 5
Karl, try adding a png (or jpeg or bmp) as icon to file and see if that works.

Thanks Michael for finding those icons!

I still believe I am right and will share what I've learned so far and why.

Icon-O-Matic works with importing & exporting to svg. My mistake, tried with one file which did not work but others do.

True HVIF is almost always under 2K (or 1K) in size.
To see sizes of icons with Haiku standard applications do:
cd /boot/system/apps
listattr *

example for Terminal (size=768 bytes):
'VICN' 768 "BEOS:ICON"

You will see almost all are around 1K or less with 1 or 2 closer to 2K.

For Arora (size=13.5K) (listattr Arora):
'VICN' 13591 "BEOS:ICON"

So, I would strongly guess that it is not a true HVIF. More likely converted from: raster image (png, bmp, jpg)->(autotrace)->svg->(Icon-O-Matic)->hvif.

Look @ BeTrace on haikuware (and bebits comments). BeTrace is frontend for autotrace (online version):
www.roitsystems.com/cgi-bin/autotrace/tracer.pl

Icon size for Arora is what makes me suspicious that it was converted from raster image. From what I've seen, HVIF should be 2K or smaller. Arora's 14K icon (size of my png file) points to some type of conversion was done to get Arora hvif icon.

I tested with autotrace online. It created svg (somewhat poor quality with default settings), size was very small. Need settings to make bigger sized (greater detailed) file. I imported into Icon-O-Matic, exported to HVIF and applied it to a program. If I can figure out good settings for autotrace then this will provide an easier way to create icons for applications.

Re:How to add a icon to a binary (Haiku) 4 years, 4 months ago #1307

  • karl
  • OFFLINE
  • Platinum Boarder
  • Posts: 465
  • Karma: 18
Karl, try adding a png (or jpeg or bmp) as icon to file and see if that works.


weird, used to work that way. guess Haiku doesn't want crappy looking icons anymore.

Re:How to add a icon to a binary (Haiku) 4 years, 4 months ago #1308

  • tonestone57
  • OFFLINE
  • Senior Boarder
  • Posts: 72
  • Karma: 5
Haiku wants vector icons to scale and look better but they are harder to create.

Hurray!!!! I was able to take jpeg convert to svg, then to hvif and attach it to a game. Just like I thought 3deyes must have done too with Arora icon and probably other ones too.

No time now. Tomorrow or maybe later today I will provide the game with the icon I put together.

Icon looks very good at 64x64. Good at 32x32 and OK smaller than that.
Time to create page: 0.37 seconds
The Largest BeOS/Haiku Software Repository