Closed Bug 176933 Opened 22 years ago Closed 6 years ago

Print filled rectangles instead of one-color-images

Categories

(Core :: Printing: Output, enhancement)

All
Linux
enhancement
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: roland.mainz, Unassigned)

References

Details

[This is a spin-off of bug 156933 - "draw filled rectangles instead of
one-color-images"]

From bug 156933:
-- snip --
It is quite common for HTML authors to use images (<IMG ...> tags) - mostly tiny
or 1x1 pixel size ones - to fill rectangles with a color, most often table cells
or such, but they even draw lines with that.

For a PDF writer module I implemented an extremely simple optimization that has
quite a nice effect: Before drawing an image, I simply check whether all pixels
of the image have the same color, and if so, I substitute the image by a solid
filled rectangle of the same size. This saves tremendous amounts of space,
printing- and rendering-performance for some web-pages.

Of course, such an optimization could be even more efficiently done at a
"higher" level, when reading the image for example. Then not only one output
device but all would benefit.
-- snip --
Swapping QA<--->Owner...
Assignee: katakai → Roland.Mainz
QA Contact: Roland.Mainz → katakai
Blocks: 192070
Product: Core → Core Graveyard
Assignee: roland.mainz → nobody
Component: Printing: Xprint → Printing: Output
Product: Core Graveyard → Core
QA Contact: masaki.katakai → printing
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.