Amiga.org

Amiga computer related discussion => Amiga Software Issues and Discussion => Topic started by: motorollin on July 05, 2007, 01:15:05 PM

Title: Dual PNG icons
Post by: motorollin on July 05, 2007, 01:15:05 PM
How do I make Dual PNG icons? I downloaded the AmiKit icon update and renamed one of the icons with a .png extension, but it just displayed as a standard image with no second state, so I can't figure out where the second image is stored.

--
moto
Title: Re: Dual PNG icons
Post by: Piru on July 05, 2007, 01:30:00 PM
The files are joined together. Yes, it's sucky.
Title: Re: Dual PNG icons
Post by: motorollin on July 05, 2007, 01:34:31 PM
Oh I see, thanks. So can I just use the AmigaDOS "join" command to join two PNG files together?

--
moto
Title: Re: Dual PNG icons
Post by: Piru on July 05, 2007, 01:35:52 PM
Apparently. I've never seen such icons, but that's what I hear.

The problem obviously is that you can't easily split the files back to two pngs (well it's relatively easy to write a tool for that, but still it sucks eggs to use some random invented thing for multiple state icons. Personally I would have used MNG (http://www.libpng.org/pub/mng/) or some other standard fileformat).
Title: Re: Dual PNG icons
Post by: motorollin on July 05, 2007, 01:42:30 PM
True, I didn't think about what you would do if you wanted to split the files out again. I'll try joining up some PNGs anyway and see what happens.

Thanks

--
moto
Title: Re: Dual PNG icons
Post by: AmiKit on July 05, 2007, 02:34:35 PM
Quote
True, I didn't think about what you would do if you wanted to split the files out again.

Better keep the original images somewhere in case you want to modify them later.
Title: Re: Dual PNG icons
Post by: quenthal on July 05, 2007, 03:32:24 PM
Is it possible to have (dual) png icons ghosted when they represent hidden files?
Title: Re: Dual PNG icons
Post by: Fab12 on July 05, 2007, 04:05:53 PM
Ghosting icon-less files has be done by the desktop (workbench, magellan, scalos or ambient). Ambient for MorphOS can do that optionally.

Title: Re: Dual PNG icons
Post by: Georg on July 05, 2007, 06:36:57 PM
Quote
The problem obviously is that you can't easily split the files back to two pngs


Maybe, but you can even less easily write a routine which safely handles unknown attributes in the icOn chunk. String attributes are embedded in the taglist instead of pointers/offsets and if for an unknown attribute (added/invented in future) you don't know how to decide whether it's a string attribute or not, you are screwed.



Title: Re: Dual PNG icons
Post by: quenthal on July 18, 2007, 12:08:33 AM
Quote

Fab12 wrote:
Ghosting icon-less files has be done by the desktop (workbench, magellan, scalos or ambient). Ambient for MorphOS can do that optionally.



Hmm... can Afa_OS do that?
Title: Re: Dual PNG icons
Post by: klesterjr on July 18, 2007, 01:03:50 AM
Quote
Hmm... can Afa_OS do that?


Yes.  

Of course, so can PowerIcons.
Title: Re: Dual PNG icons
Post by: quenthal on July 18, 2007, 01:26:33 AM
Quote

klesterjr wrote:
Quote
Hmm... can Afa_OS do that?


Yes.  

Of course, so can PowerIcons.


Hmm.. I think I'm now one step closer to start using Afa_Os. :-) (One of the reasons why I'm still using IconBeFast/PowerIcons was this)
I tried short while ago Afa_OS, but files without .infos were not ghosted/partially transparent. I presume there is some switch in the prefs for this - maybe I gave up too hastily. If I remember correctly, ghosting hidden files was default setting with Powericons so this might be the reason for difference.