Closed GoogleCodeExporter closed 9 years ago
ähm. Teryaki, was this your source of the icon?
I agree that we should better use another icon if this is the case. And that
152kb is too big anyway!
I converted the project-page logo into a 16*16 ico-file. It is attached. One
version with white background, one transparent. The transparency is not perfect
yet, as there is a white/light border around the icon
Original comment by crazy4ch...@gmail.com
on 7 Mar 2013 at 1:15
Hmm. Attachment fail!?
Original comment by crazy4ch...@gmail.com
on 7 Mar 2013 at 1:18
Attachments:
We could also use a PNG image, if smaller (w/ optipng, pngcrush or similar).
The only browser which would have trouble with a png favicon is IE6 (see
http://stackoverflow.com/questions/1344122/favicon-png-vs-favicon-ico-why-should
-i-use-pngs-instead-of-icos ).
At that point, we can resize the prject logo, which is transparent and has no
white outline:
http://code.google.com/p/phpliteadmin/logo?cct=1358201836
Original comment by dreadnaut
on 7 Mar 2013 at 1:47
Here's a 16x16 png file, down to 438B, which become 606 bytes as a data: URL.
We can either include it inside the <head> tag (+606B each page load) or as a
resource (+1 http request, cacheable, no increase in page size).
Original comment by dreadnaut
on 8 Mar 2013 at 3:17
Attachments:
Looks great. A factor of 350 smaller ;-)
I think both approaches are okay. With the resource approach, we also get IE7
to work (although I think that's of no importance at all for the favicon).
But the faster solution is also the resource. In PLA, you usually do at least 5
clicks. That's at least 3KB of favicon loaded with the data-url approach. With
the resource approach, it is 438B + 1 http request. This already beats it and
it scales a lot better when you do a lot of clicks.
We could also consider serving it from google svn again, which I think is also
very good because they have fast servers in cdns, headers properly set for
caching, enables proxy-caching, uses spdy and so on. And a cookieless request
from a different server in parallel can be a lot faster than a request from
the same server with session cookie and so on.
But in the end, we are talking about serving a 438B favicon. It doesn't matter
much.
Original comment by crazy4ch...@gmail.com
on 9 Mar 2013 at 1:17
Original comment by crazy4ch...@gmail.com
on 9 Mar 2013 at 3:20
As I wrote before, I don't like too much serving from svn:
- I'm not sure it doesn't go against some of Google's term of service
- requires an internet connection
- breaks the "all-included" style (another "principle" we might discuss about,
btw —somewhere else)
and as you said, it all just for a tiny icon :)
I also like the resource style more, so I'll get this ready together with #157;
this way we can retract the larger icon before release.
Original comment by dreadnaut
on 10 Mar 2013 at 10:37
Bad news: no version of IE accepts a png favicon, not even IE10. I had to
switch to .ico, which means 1.1KB of binary data for the image above.
Good news: ico files compress very well, so we can store and output 'deflated'
data by adding the correct header:
header('Content-encoding: deflate');
echo base64_decode( .... );
Very good news: ico -> gzdeflate -> base64_encode gives us 380B of data, even
less than the png file! :)
gzdeflate() might be a good idea for resources in general, once we have the
build script ready! (Issue #190)
Original comment by dreadnaut
on 10 Mar 2013 at 11:24
Attached is a patch against... my other patch in Issue #157, just to get an
idea of the code involved.
Original comment by dreadnaut
on 10 Mar 2013 at 11:29
Attachments:
Updated patch for this too, much simpler code.
I'll also place the new favicon in a 1.9.4/resources/ subdirectory. At the same
time, I'll remove the larger file in the /themes/ directory.
Original comment by dreadnaut
on 13 Mar 2013 at 12:27
Attachments:
I replaced the resource string with the gzipped (vs deflate) version, and
committed as r354. I forgot the commit message though, I added it as a comment.
Original comment by dreadnaut
on 13 Mar 2013 at 8:01
Original comment by dreadnaut
on 13 Mar 2013 at 8:02
Great, thanks.
Maybe I should "purge" (permanently delete) the old favicon from svn just to be
on the safe side (regarding the license). But as svn doesn't make this too
simple (see my blog post
http://blog.christosoft.de/2012/02/subversion-svn-permanently-remove-files-from-
repository-history/ ) I might do it after the release of 1.9.4.
Original comment by crazy4ch...@gmail.com
on 13 Mar 2013 at 8:17
Looks dangerous :-p Since the icon was added and removed between 1.9.3
and 1.9.4 we never actually released it or packaged it, so it might be
fine anyway.
Original comment by dreadnaut
on 13 Mar 2013 at 8:21
It's not that dangerous. You get a dump in step2 which is your life-saving
backup. If you want to, you can install the dump somewhere to make sure it is
working. If the filtered dump won't work, you can import the old one again.
I have done it several times and it always worked out. But it's something you
don't do without a good reason. And yes, we never really released or packaged
the file, but it will still be available from svn unless we purge it. Not a big
deal, but I just prefer to be on the safe side.
Original comment by crazy4ch...@gmail.com
on 13 Mar 2013 at 11:54
I'm uploading the favicon as png, together with the other logos, so we have a
separate copy.
Original comment by dreadnaut
on 15 Mar 2013 at 3:30
Original issue reported on code.google.com by
dreadnaut
on 3 Mar 2013 at 1:31