To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=89321
                 Issue #|89321
                 Summary|Fixed and optimized 'standard.sob' (background fill im
                        |ages)
               Component|Installation
                 Version|OOo 3.0 Beta
                Platform|PC
                     URL|
              OS/Version|Windows XP
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|PATCH
                Priority|P3
            Subcomponent|ui
             Assigned to|of
             Reported by|ace_dent





------- Additional comments from [EMAIL PROTECTED] Mon May 12 00:52:17 +0000 
2008 -------
SUMMARY

The attached patch (CVS ready file) offers an improved set of backgound fill
image bitmaps (standard.sob). In summary (more details below):
1. Image defects introduced by jpeg compression and some poor tiling in the
original images were fixed (no design changes!);
2. Images reduced to 256 color palette (I believe this was the original design),
then extensive lossless optimization to shrink file size;
3. Archive .sob, rebuilt with updated xml files and optimized zip compression.

-> Standard.sob reduced from 379 to 152 KB (-254KB per User + Preset), whilst
delivering visually better images... a nice win!

Destined for:
[installation] / extras / source / palettes


DETAILS

1. Images enhanced

I noticed that the .sob images seemed to contain jpeg type defects (unwanted
color noise, ringing at edges, etc. - see Red Brick Wall), while they seemed to
be designed as 256 color images (i.e. probably once gif images). I tracked
images back to SO5.2 where they exist as jpeg files and guessed they were indeed
converted: bitmap (gif/bmp) > jpeg > bitmap (png in current .sob). I set about
first fixing and tweaking the images and then reducing back to what I believe
was the intended 256 color palette, with no visual change. To verify this I will
attach test documents. Details of individual image enhancements:

Brownstone / Red Wall
- Fixed bad brick line (cloned).
- Very minor smoothing to soften edges.
Droplets / Wet
- Bad JPEG 'mosquito' noise.
- Removed and rebuilt background.
- Slightly softened reflection highlights in drops.
Fiery
- Remove tile banding.
- Very minor smoothing to soften edges.
Marble
- Applied slight filter to remove JPEG artifacts.
- Only required 16 colour palette.
Mercury / Space Metal
- Remove tile banding.
- Very minor smoothing to soften edges.
Metal
- Minor texture preserving smoothing to reduce JPEG noise.
Orange
- Original GIF available in SO5.2, using only 4 colours.
- To compromise with jpeg version a softening / sharpening cycle was applied.
- Only required 16 colour palette.
Space
- V. bad JPEG 'mosquito' noise.
- Removed and rebuilt background.
- Added slightly softened halo to stars (again fix jpeg damage).
Wall
- Improved tile edges and overlaps and fixed small tiling defect.
Water / Aqua
- Minor texture preserving smoothing to reduce JPEG noise.


2. Images optimized

All png images, now fixed-up and reduced to 8 bit per pixel, were then ran
through a lossless optimization process to compress file size further. (See
Issue 73389 for exanple of my other related work).


3. Re-packaging 'standard.sob'

The .sob file was partially rebuilt by hand / hacked. This was principally due
to a current bug (Issue 82100 - png images re-generated), which prevents these
optimized images being saved in the .sob file unaltered. To get decent OOo style
image filename (/checksum type names), the images were first saved into an .odt
document and then extracted. The manifest and Content files for the .sob file
were then updated with these new file references.

I also took the opportunity to update the xml files to match current convention
and standards, since they have not be touched in 5 years (XML namespace changes
described by Issue 32542). This also brought about some small space savings:
* 'Content.xml' 4.10 > 3.56KB
was : office:bitmap-table xmlns:office="http://openoffice.org/2000/office";
to : ooo:bitmap-table
xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0"
and xlink:href was '#Pictures/...' changed to 'Pictures/...'
* 'manifest.xml' 2.96 > 2.79KB
was : <!DOCTYPE manifest:manifest PUBLIC "-//OpenOffice.org//DTD Manifest
1.0//EN" "Manifest.dtd"> <manifest:manifest
xmlns:manifest="http://openoffice.org/2001/manifest";>
to : <manifest:manifest>

Finally the resulting zip archive (container format for .sob file), was run
through various deflate compression engines (7zip, kzip, deflopt) and optimized
using 'zipmax' - this saved some more bytes.


CONCLUSION

Although the images are reduced in color depth, I believe they look at least
equal to the originals- and in fact are often superior due to the fixes and
tweaks applied. The multiple levels of compression improvements, will save at
least ~0.5MB per OOo install, but could be substantially more since
'standard.sob' is held per User and may be pulled across a network (E.g. Concern
over file size expressed here:
http://de.openoffice.org/servlets/ReadMsg?list=users&msgNo=30622 )

Regards
Andrew

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to