Welcome, Guest. Please login or register.

Author Topic: Dual PNG icons  (Read 1971 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show only replies by motorollin
Dual PNG icons
« 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
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline Piru

  • \' union select name,pwd--
  • Hero Member
  • *****
  • Join Date: Aug 2002
  • Posts: 6946
    • Show only replies by Piru
    • http://www.iki.fi/sintonen/
Re: Dual PNG icons
« Reply #1 on: July 05, 2007, 01:30:00 PM »
The files are joined together. Yes, it's sucky.
 

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show only replies by motorollin
Re: Dual PNG icons
« Reply #2 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
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline Piru

  • \' union select name,pwd--
  • Hero Member
  • *****
  • Join Date: Aug 2002
  • Posts: 6946
    • Show only replies by Piru
    • http://www.iki.fi/sintonen/
Re: Dual PNG icons
« Reply #3 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 or some other standard fileformat).
 

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show only replies by motorollin
Re: Dual PNG icons
« Reply #4 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
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline AmiKit

Re: Dual PNG icons
« Reply #5 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.

Offline quenthal

  • Sr. Member
  • ****
  • Join Date: Feb 2002
  • Posts: 405
    • Show only replies by quenthal
Re: Dual PNG icons
« Reply #6 on: July 05, 2007, 03:32:24 PM »
Is it possible to have (dual) png icons ghosted when they represent hidden files?
A4000/CSPPC&060
 

Offline Fab12

  • Newbie
  • *
  • Join Date: Sep 2006
  • Posts: 37
    • Show only replies by Fab12
Re: Dual PNG icons
« Reply #7 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.

 

Offline Georg

  • Jr. Member
  • **
  • Join Date: Feb 2002
  • Posts: 90
    • Show only replies by Georg
Re: Dual PNG icons
« Reply #8 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.



 

Offline quenthal

  • Sr. Member
  • ****
  • Join Date: Feb 2002
  • Posts: 405
    • Show only replies by quenthal
Re: Dual PNG icons
« Reply #9 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?
A4000/CSPPC&060
 

Offline klesterjr

  • Full Member
  • ***
  • Join Date: Jul 2002
  • Posts: 196
    • Show only replies by klesterjr
Re: Dual PNG icons
« Reply #10 on: July 18, 2007, 01:03:50 AM »
Quote
Hmm... can Afa_OS do that?


Yes.  

Of course, so can PowerIcons.
 

Offline quenthal

  • Sr. Member
  • ****
  • Join Date: Feb 2002
  • Posts: 405
    • Show only replies by quenthal
Re: Dual PNG icons
« Reply #11 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.
A4000/CSPPC&060