Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Support for dual png icons ? [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
Dominique_71
Veteran
Veteran


Joined: 17 Aug 2005
Posts: 1487
Location: Switzerland (Romandie)

PostPosted: Sat Oct 30, 2010 5:14 pm    Post subject: Support for dual png icons ? [solved] Reply with quote

I find a package with some nice icons, but they are dual png icons : Ken's DualPNG Icons.

The files into the archive are named *.info, but if you take a look at them, it is 2 png files in each file. When I open them with comix or gimp, only the first one of those 2 pictures is showed.

Is it possible to, at least, extract the 2 png files of such icons?
_________________
[[[ To any NSA and FBI agents reading that text: please consider ]]]
[[[ whether defending the US Constitution against all enemies, ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]


Last edited by Dominique_71 on Sun Oct 31, 2010 8:14 pm; edited 1 time in total
Back to top
View user's profile Send private message
smileyguy
Tux's lil' helper
Tux's lil' helper


Joined: 26 Dec 2004
Posts: 80

PostPosted: Sun Oct 31, 2010 7:13 pm    Post subject: Reply with quote

Save to info_split.py somewhere in your path, chmod u+x info_split.py, and info_split.py *.info. I haven't tested this much, but it seems to work with the info files you linked to.

Code:
#!/usr/bin/env python
import sys
for arg in sys.argv [1:]:
    try:
        info_file = open (arg, "rb")
    except:
        exit (-1)
    info = info_file.read ()
    info_file.close ()
    pngs = []
    index = info.find (chr (0211) + "PNG")
    while index > -1:
        pngs.append (index)
        index = info.find (chr(0211) + "PNG", pngs[-1] + 1)
    pngs.append (len (info))
    n_pngs = len (pngs) - 1
    for n in range (n_pngs):
        png_file = open (arg + str (n) + ".png", "wb")
        png_file.write (info [pngs[n] : pngs[n+1]] )
        png_file.close ()
Back to top
View user's profile Send private message
Dominique_71
Veteran
Veteran


Joined: 17 Aug 2005
Posts: 1487
Location: Switzerland (Romandie)

PostPosted: Sun Oct 31, 2010 8:13 pm    Post subject: Reply with quote

Thanks a lot, it work just fine !

I will have to learn python when I get some time...
_________________
[[[ To any NSA and FBI agents reading that text: please consider ]]]
[[[ whether defending the US Constitution against all enemies, ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]
Back to top
View user's profile Send private message
AaronPPC
Guru
Guru


Joined: 29 May 2005
Posts: 517
Location: Tucson, AZ

PostPosted: Mon Nov 01, 2010 6:56 am    Post subject: Reply with quote

I sure do miss the Amiga.
_________________
--Aaron
Back to top
View user's profile Send private message
Dominique_71
Veteran
Veteran


Joined: 17 Aug 2005
Posts: 1487
Location: Switzerland (Romandie)

PostPosted: Mon Nov 01, 2010 5:24 pm    Post subject: Reply with quote

It was the best of all my pc. Simple, fast, reliable, easy to learn and use.

I am working on an amiga recipe for fvwm-crystal. It will mix the things I like into the amiga OS and the power of fvwm. It will be possible, among other things, to maximize into fullscreen almost any windows, and to cycle through them and the desktop.

Now that I have the 2 pictures of those icons, I will search how it can be possible to use them into fvwm in order to mimic the 2 pictures/states icons of the amiga OS. For now, it look like that : Clean Clean with menu busy
_________________
[[[ To any NSA and FBI agents reading that text: please consider ]]]
[[[ whether defending the US Constitution against all enemies, ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]
Back to top
View user's profile Send private message
Dominique_71
Veteran
Veteran


Joined: 17 Aug 2005
Posts: 1487
Location: Switzerland (Romandie)

PostPosted: Sat May 18, 2013 4:47 pm    Post subject: Reply with quote

I find the website of the author: http://www.five-star.com/icons.htm
and he kindly gave me the permission to use his original and beautiful work. :D
_________________
[[[ To any NSA and FBI agents reading that text: please consider ]]]
[[[ whether defending the US Constitution against all enemies, ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]
Back to top
View user's profile Send private message
Dominique_71
Veteran
Veteran


Joined: 17 Aug 2005
Posts: 1487
Location: Switzerland (Romandie)

PostPosted: Sat May 18, 2013 5:02 pm    Post subject: Reply with quote

AaronPPC wrote:
I sure do miss the Amiga.


Try the last FVWM-Crystal release, you will be surprised. It include a clone of the Amiga stack of full-screened applications which doesn't compromise the traditional X multiple desktop pages, and with Thunar as desktop manager, the desktop icons are managed in fact by FVWM-Crystal and you will get 2 pictures icons like in the Amiga OS. I am currently working to add localized support with such icons for the xdg-userdirs like ~/Desktop, Music and so on.

It is an ebuild here: https://bugs.gentoo.org/show_bug.cgi?id=468680

The next release will be even better, with new features like a Bling bling module (automatic E17 like translucency support) and a very well working version of the FVWM Expose function.
_________________
[[[ To any NSA and FBI agents reading that text: please consider ]]]
[[[ whether defending the US Constitution against all enemies, ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum