Print filled rectangles instead of one-color-images

RESOLVED WONTFIX

Status

()

--
enhancement
RESOLVED WONTFIX
16 years ago
8 months ago

People

(Reporter: roland.mainz, Unassigned)

Tracking

Trunk
All
Linux
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

16 years ago
[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 --
(Reporter)

Comment 1

16 years ago
Swapping QA<--->Owner...
Assignee: katakai → Roland.Mainz
QA Contact: Roland.Mainz → katakai
(Reporter)

Updated

16 years ago
Blocks: 192070
(Assignee)

Updated

10 years ago
Product: Core → Core Graveyard

Updated

9 years ago
Assignee: roland.mainz → nobody
Component: Printing: Xprint → Printing: Output
Product: Core Graveyard → Core
QA Contact: masaki.katakai → printing

Updated

8 months ago
Status: NEW → RESOLVED
Last Resolved: 8 months ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.