[dev] OOo's Toolbar Icons - Saving Space
Hello all, Recently I have explored one specific area where we could easily reduce the hard disk footprint of OpenOffice.org. The vast majority of reductions would be passed on to the size of the OOo installer, which makes this all the more attractive (less bandwidth costs, people download OOo quicker and they have a little more hard drive space for all their documents :P). The area in question is found in a bunch of zip files in OOo's /Basis/share/config folder. These are the toolbar icon sets that are bundled with OOo, and there are 6 of them (galaxy, high contrast, industrial, tango, crystal and classic). I have written a discussion about how OOo could be smarter with these icon sets and save space [1]. In summary, what it comes down to is: 1) Get rid of old icon sets. Industrial and Classic are two good candidates IMO. 2) Run PNGOUT [2] on all icon sets to reduce the size of each PNG file. Small reductions across many files add up substantially. 3) Reduce the duplication of images in each icon set. The high contrast icons also appear to be duplicated in the Galaxy icon set - does anyone know why? 4) Increase/decrease the compression of each icon set depending on the performance impact (i.e., we can reduce compression if it will make OOo load faster, or we can increase it if the extra memory use is inconsequential). #2 alone could save a few megabytes and would require no code modifications whatsoever. At the very, very least we should do this, and it could be done in time for OOo 3.3 (maybe even 3.2.1?) My discussion/proposal is based on what I have been able to gather by myself, so this may not actually be as simple as I believe. That's why a discussion can't just be between one person. I have had some positive responses to this on the UX and Branding list [3] and I'm hoping this email to the dev list will help make this proposal more concrete. I do have a couple of questions as well (I'm not sure who I should ask?): 1) Why do the high contrast icons appear to be duplicated in the Galaxy set AND in the high contrast icon set? 2) What happened to the icon sets between OOo 3.2 and 3.2.1? Their size decreased considerably - was this just the new ODF icons or is some kind of space saving effort underway? Regards, Ivan. -- [1] http://www.patentpending.co.nz/soapbox/index.php/reducing-the-footprint-of-openoffice-org-toolbar-icons/ [2] http://advsys.net/ken/utils.htm [3] http://marketing.openoffice.org/servlets/BrowseList?list=branding&by=thread&from=2359419 - To unsubscribe, e-mail: dev-unsubscr...@openoffice.org For additional commands, e-mail: dev-h...@openoffice.org
Re: [dev] OOo's Toolbar Icons - Saving Space
I also propose to remove star wars game from Calc to save space (or at least move it to separate package if there are lots of fans) 24.04.10, 21:31, "Ivan M" : > Hello all, > > Recently I have explored one specific area where we could easily > reduce the hard disk footprint of OpenOffice.org. The vast > majority of reductions would be passed on to the size of the OOo > installer, which makes this all the more attractive (less bandwidth > costs, people download OOo quicker and they have a little more hard > drive space for all their documents :P). > > The area in question is found in a bunch of zip files in OOo's > /Basis/share/config folder. These are the toolbar icon sets that are > bundled with OOo, and there are 6 of them (galaxy, high contrast, > industrial, tango, crystal and classic). I have written a discussion > about how OOo could be smarter with these icon sets and save space [1]. > > In summary, what it comes down to is: > > 1) Get rid of old icon sets. Industrial and Classic are two good candidates > IMO. > > 2) Run PNGOUT [2] on all icon sets to reduce the size of each PNG file. > Small reductions across many files add up substantially. > > 3) Reduce the duplication of images in each icon set. The high contrast icons > also appear to be duplicated in the Galaxy icon set - does anyone know why? > > 4) Increase/decrease the compression of each icon set depending on the > performance impact (i.e., we can reduce compression if it will make > OOo load faster, or we can increase it if the extra memory use is > inconsequential). > > #2 alone could save a few megabytes and would require no code > modifications whatsoever. At the very, very least we should do this, > and it could be done in time for OOo 3.3 (maybe even 3.2.1?) > > My discussion/proposal is based on what I have been able to gather by > myself, so this may not actually be as simple as I believe. That's why > a discussion can't just be between one person. I have had some positive > responses to this on the UX and Branding list [3] and I'm hoping this email > to the dev list will help make this proposal more concrete. > > I do have a couple of questions as well (I'm not sure who I should ask?): > 1) Why do the high contrast icons appear to be duplicated in the > Galaxy set AND in the high contrast icon set? > 2) What happened to the icon sets between OOo 3.2 and 3.2.1? Their > size decreased considerably - was this just the new ODF icons or is > some kind of space saving effort underway? > > Regards, > Ivan. > > -- > [1] > http://www.patentpending.co.nz/soapbox/index.php/reducing-the-footprint-of-openoffice-org-toolbar-icons/ > [2] http://advsys.net/ken/utils.htm > [3] > http://marketing.openoffice.org/servlets/BrowseList?list=branding&by=thread&from=2359419 > > - > To unsubscribe, e-mail: dev-unsubscr...@openoffice.org > For additional commands, e-mail: dev-h...@openoffice.org > > > -- Regards, Konstantin Здесь спама нет http://mail.yandex.ru/nospam/sign - To unsubscribe, e-mail: dev-unsubscr...@openoffice.org For additional commands, e-mail: dev-h...@openoffice.org
Re: [dev] OOo's Toolbar Icons - Saving Space
Konstantin Tokarev schrieb: I also propose to remove star wars game from Calc to save space (or at least move it to separate package if there are lots of fans) As chance would have it, that one was dropped already with the modules reorganization in CWS svxsplit. But in terms of space, it was 50K or so. Any discussion about it wastes more space than the code itself. Niklas - To unsubscribe, e-mail: dev-unsubscr...@openoffice.org For additional commands, e-mail: dev-h...@openoffice.org
Re: [dev] OOo's Toolbar Icons - Saving Space
Hi Ivan, On Saturday 24 April 2010, Ivan M wrote: > The area in question is found in a bunch of zip files in OOo's > /Basis/share/config folder. These are the toolbar icon sets that are > bundled with OOo, and there are 6 of them (galaxy, high contrast, > industrial, tango, crystal and classic). I have written a discussion > about how OOo could be smarter with these icon sets and save space [1]. Thank you for looking at this! > In summary, what it comes down to is: > > 1) Get rid of old icon sets. Industrial and Classic are two good candidates > IMO. > > 2) Run PNGOUT [2] on all icon sets to reduce the size of each PNG file. > Small reductions across many files add up substantially. IIRC, Andrew C. Dent already did something like this with the icons that are in the repository [though these things tend to bitrot over time, as new icons are introduced etc.]. Have you tried yourself, if you gain anything, please? > 3) Reduce the duplication of images in each icon set. The high contrast > icons also appear to be duplicated in the Galaxy icon set - does anyone > know why? The hicontrast theme is for people with sight disabilities. Unfortunately, before the introduction of the icon theming, OOo had many places with hardcoded code paths that used code like 'if ( darkTheme ) useHicontrast(); else useNormal();' That hasn't been cleaned up, even though with the concept of the icon switching, it would be much easier to just generally switch the theme, and be done with that. If you are a programmer & would be interested to help, I'll be happy to show you the pieces that need the cleanup. > 4) Increase/decrease the compression of each icon set depending on the > performance impact (i.e., we can reduce compression if it will make > OOo load faster, or we can increase it if the extra memory use is > inconsequential). There are some tricks already used, like ordering the icons according to their use in the .zip IIRC. Regards, Kendy - To unsubscribe, e-mail: dev-unsubscr...@openoffice.org For additional commands, e-mail: dev-h...@openoffice.org
Re: [dev] OOo's Toolbar Icons - Saving Space
Hi Ivan, thanks for your suggestions. Please let me add some more technically motivated comments. In the same way as developers have to care for user experience, plans for possible changes must take technical boundary conditions into account that at least might have an influence on when something can be done and how long it will probably take. This can be much more than the apparent effort that is obvious at a first glance. Ivan M wrote: > 1) Get rid of old icon sets. Industrial and Classic are two good candidates > IMO. I don't know who actually uses or needs this icon sets. So not the developers should be asked, but rather the users. I never switched icon sets except for testing the feature, but that's only me. > > 2) Run PNGOUT [2] on all icon sets to reduce the size of each PNG file. > Small reductions across many files add up substantially. IMHO it doesn't make sense to save a little space in the installation set at the price of blowing up the size of the code repository. Each new version of an image enlarges the repository with its size, as binary files can't be stored as a diff. Please read more about that below. > 3) Reduce the duplication of images in each icon set. The high contrast icons > also appear to be duplicated in the Galaxy icon set - does anyone know why? I assume that not all are duplicates, so it makes sense to keep the hc images. We won't support incomplete packages, with fallback magic that messes up the code and makes it slower. *If* the hc images package makes sense, I rather would expect that it should be fixed to contain hc images only. > 4) Increase/decrease the compression of each icon set depending on the > performance impact (i.e., we can reduce compression if it will make > OOo load faster, or we can increase it if the extra memory use is > inconsequential). See 2). Besides that I expect this effect to be unmeasurable. > #2 alone could save a few megabytes and would require no code > modifications whatsoever. At the very, very least we should do this, > and it could be done in time for OOo 3.3 (maybe even 3.2.1?) I have my doubts about the "few megabytes". But even if I took that for granted, I wouldn't believe that shaving off a few MB disk space is what will make OOo more attractive to users. I know for sure that it will raise complaints about the size of the OOo source code repository, as explained. Most users won't notice this change ever. But developers will, and they won't like it. We are thinking about a possible code repository split somewhere in the future. At that point in time it wouldn't be a problem to exchange all images as we could move them all into a new repository. So if the modifications were prepared (and no other reasons exist not to make them), we could arrange for them as soon as we know when the split will happen. A repository split will happen only when a new code line is split off. As the 3.3 code line split will be too near to prepare our build system and other tooling for the move of some modules to an own repository, I assume that it could happen for 3.4. Regards, Mathias - To unsubscribe, e-mail: dev-unsubscr...@openoffice.org For additional commands, e-mail: dev-h...@openoffice.org
Re: [dev] OOo's Toolbar Icons - Saving Space
Hi *, On Wed, Apr 28, 2010 at 4:13 AM, Mathias Bauer wrote: > >> 1) Get rid of old icon sets. Industrial and Classic are two good candidates >> IMO. Would save less than 10MB... >> 2) Run PNGOUT [2] on all icon sets to reduce the size of each PNG file. >> Small reductions across many files add up substantially. > > IMHO it doesn't make sense to save a little space in the installation > set at the price of blowing up the size of the code repository. Besides the icons have already been processed like that. (e.g. cws aceart02,iconupdate300u1 and probably others, by Andrew Dent (ace_dent)) So I doubt trying to compress them further will save anything worth to mention. >> 4) Increase/decrease the compression of each icon set depending on the >> performance impact (i.e., we can reduce compression if it will make >> OOo load faster, or we can increase it if the extra memory use is >> inconsequential). > > See 2). Besides that I expect this effect to be unmeasurable. Yes, see above. ciao Christian - To unsubscribe, e-mail: dev-unsubscr...@openoffice.org For additional commands, e-mail: dev-h...@openoffice.org
Re: [dev] OOo's Toolbar Icons - Saving Space
Hi Mathias, Christian, all, On Wed, Apr 28, 2010 at 8:13 PM, Mathias Bauer wrote: > Hi Ivan, > > thanks for your suggestions. Please let me add some more technically > motivated comments. > > In the same way as developers have to care for user experience, plans > for possible changes must take technical boundary conditions into > account that at least might have an influence on when something can be > done and how long it will probably take. This can be much more than the > apparent effort that is obvious at a first glance. Certainly. I acknowledge that things are not always as simple as one might initially believe. My case for these changes is solely on the basis of what I've been able to figure out on my own thus far, so your comments from a more technical perspective are much appreciated. > Ivan M wrote: > >> 1) Get rid of old icon sets. Industrial and Classic are two good candidates >> IMO. > > I don't know who actually uses or needs this icon sets. So not the > developers should be asked, but rather the users. I never switched icon > sets except for testing the feature, but that's only me. That is true, although I think developers should also be consulted in this in case they have any particular objection to these older icon sets being removed (e.g. maybe they are used under some special circumstances?). Users are also very important and there are 2 ways I can think of considering the users: 1) looking at the usage feedback data to see how frequently the icon sets are changed, and asking 2) consulting them - on mailing lists, the OOo forums, etc. Christian wrote that getting rid of the Industrial and Classic icon sets would save less than 10MB. That is true, but if that space saving carries over to the installer, it could reduce the installer size considerably (i.e > 5%). On further investigation with different levels of compression, I can see that there is a possibility that such space savings will have a very negligible impact. For example, if OOo uses high LZMA compression for the installer/packages then space savings will be very small because all the zip files can be further compressed from 22MB to 6MB with LZMA on high levels of compression. In that case, taking out 2 icon sets would only end up saving ~2MB in the installer. If OOo isn't using LZMA, it should :). >> 2) Run PNGOUT [2] on all icon sets to reduce the size of each PNG file. >> Small reductions across many files add up substantially. > > IMHO it doesn't make sense to save a little space in the installation > set at the price of blowing up the size of the code repository. Each new > version of an image enlarges the repository with its size, as binary > files can't be stored as a diff. Please read more about that below. Thanks for pointing that out. As I understand it, there is a branch for each release code line (according to http://wiki.services.openoffice.org/wiki/Branch_off) so that would indeed appear the opportune time to make changes. I certainly wouldn't want to inconvenience any developers. >> 3) Reduce the duplication of images in each icon set. The high contrast icons >> also appear to be duplicated in the Galaxy icon set - does anyone know why? > > I assume that not all are duplicates, so it makes sense to keep the hc > images. We won't support incomplete packages, with fallback magic that > messes up the code and makes it slower. *If* the hc images package makes > sense, I rather would expect that it should be fixed to contain hc > images only. I will look into this in more depth, but from what I saw initially, a good number of the high contrast icons were identical and even had the same file names across both icon sets. This duplication defeats the purpose of icon themes somewhat - Galaxy and High Contrast should be separate, shouldn't they? >> 4) Increase/decrease the compression of each icon set depending on the >> performance impact (i.e., we can reduce compression if it will make >> OOo load faster, or we can increase it if the extra memory use is >> inconsequential). > > See 2). Besides that I expect this effect to be unmeasurable. > >> #2 alone could save a few megabytes and would require no code >> modifications whatsoever. At the very, very least we should do this, >> and it could be done in time for OOo 3.3 (maybe even 3.2.1?) > > I have my doubts about the "few megabytes". After running PNGOUT on all icon sets, it turns out that only around 1.5-2MB can be saved because as has been mentioned, some of the icon sets have already been optimized in the past. All icon themes have some room for savings because new unoptimized images have been introduced in the meantime for each icon theme. > But even if I took that for > granted, I wouldn't believe that shaving off a few MB disk space is what > will make OOo more attractive to users. You're right: it won't be a marketable feature by any means. But if it can be done reasonably painlessly (i.e. without adversely affecting the size of the code repository an
Re: [dev] OOo's Toolbar Icons - Saving Space
Hi Ivan, On 29.04.2010 08:46, Ivan M wrote: You're right: it won't be a marketable feature by any means. But if it can be done reasonably painlessly (i.e. without adversely affecting the size of the code repository and inconveniencing developers), I think it could be worth doing. The same goes for cleaning up the high contrast icon duplication. I'm happy to invest the time to do what I can - I would value the opportunity to further explore and possibly contribute to OOo. Jan has offered to help me, so I will have a better understanding of what's involved soon. I will try to find out why ther HiContrast themes are as you found them. Thanks for your thoughts and your interest in contributing, Mathias -- Mathias Bauer (mba) - Project Lead OpenOffice.org Writer OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS Please don't reply to "nospamfor...@gmx.de". I use it for the OOo lists and only rarely read other mails sent to it. - To unsubscribe, e-mail: dev-unsubscr...@openoffice.org For additional commands, e-mail: dev-h...@openoffice.org