Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Converting .icos to .pngs with partial transparency intact
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
Lews_Therin
l33t
l33t


Joined: 03 Oct 2003
Posts: 657
Location: Banned

PostPosted: Mon Feb 16, 2004 1:44 am    Post subject: Converting .icos to .pngs with partial transparency intact Reply with quote

I was recently trying to change a bunch of .icos to .pngs, but the pixels featuring partial transparency turned black. Then I figured out how to do it with rox (the file browser).

1) Make sure thumbnails are enabled. Browse to the directory containing the icons, and let the thumbnails get generated.

2) Check out your ~/.thumbnails/normal folder (that's what it was on mine). Every .ico will be a .png, transparency perfect, with random names.

3) AFAIK, you can't generate different sizes. The gimp does well for shrinking/expanding, though.


If anybody happens to know how rox generates it's thumbs, or if there is another program that uses the same technique, please post it as this method is sort of...kludgy.
Back to top
View user's profile Send private message
Cerement
Guru
Guru


Joined: 14 Jun 2003
Posts: 404

PostPosted: Mon Feb 16, 2004 2:10 am    Post subject: Reply with quote

icoutils in portage (with a little tweaking) can usually do a decent job

best luck I've had is with icoconvert
Back to top
View user's profile Send private message
Lews_Therin
l33t
l33t


Joined: 03 Oct 2003
Posts: 657
Location: Banned

PostPosted: Mon Feb 16, 2004 2:39 am    Post subject: Reply with quote

I tried icoutils, that was the program that badly converted the partially transparent pixels. Since icoconvert doesn't seem to be in Portage, that'll probably be a test program for another day.
Back to top
View user's profile Send private message
revertex
l33t
l33t


Joined: 23 Apr 2003
Posts: 806

PostPosted: Tue Apr 13, 2004 8:19 pm    Post subject: Reply with quote

Icontools works perfect for me, but the "~/.thumbnails" tip is perfect thank's!
Back to top
View user's profile Send private message
ugly_orc
n00b
n00b


Joined: 30 Jan 2003
Posts: 54
Location: france

PostPosted: Tue Apr 13, 2004 8:38 pm    Post subject: Reply with quote

Quote:
I tried icoutils, that was the program that badly converted the partially transparent pixels


If you use icoutils >= 0.22 (probably masked), you'll get perfect transparency!
_________________
Julien Cugnière
Back to top
View user's profile Send private message
blaksaga
Guru
Guru


Joined: 19 May 2003
Posts: 461
Location: Omaha, NE, USA

PostPosted: Thu Jul 08, 2004 8:32 pm    Post subject: Reply with quote

Code:

blaksaga@localhost images $ icotool -c favicon.png
icotool: refusing to write binary data to terminal


Any idea what is wrong?
_________________
[ blaksaga.com ]
Back to top
View user's profile Send private message
blaksaga
Guru
Guru


Joined: 19 May 2003
Posts: 461
Location: Omaha, NE, USA

PostPosted: Thu Jul 08, 2004 9:02 pm    Post subject: Reply with quote

I also found this:

http://linuxproblem.org/art_19.html

It works just fine but now I have to figure out why firefox won't use it.
_________________
[ blaksaga.com ]
Back to top
View user's profile Send private message
karnesky
Apprentice
Apprentice


Joined: 18 Mar 2004
Posts: 218

PostPosted: Fri Jul 09, 2004 12:45 pm    Post subject: Reply with quote

For going from png to ico, I like png2ico. Transparency works & it lets you put both of the most commonly used icon sizes in one favicon.ico.

blaksaga wrote:
It works just fine but now I have to figure out why firefox won't use it.

Firefox doesn't appear to automatically look for a new favicon on a site that it has previously visited.

I believe that adding
Code:
<link rel="icon" href="favicon.ico" type="image/x-icon">
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">

to the header would probably work.
Back to top
View user's profile Send private message
villiam
n00b
n00b


Joined: 15 Sep 2002
Posts: 12
Location: Canada

PostPosted: Fri Jul 23, 2004 3:28 am    Post subject: Reply with quote

blaksaga wrote:
Code:

blaksaga@localhost images $ icotool -c favicon.png
icotool: refusing to write binary data to terminal


Any idea what is wrong?


I had the same problem and figured out what it was in case you are still stuck. You need to redirect the output to a file so

Code:
$ icotool -c favicon.png > favicon.ico


should work for you.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks 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