Re: large images / EPSI
- From: blmblm@xxxxxxxxxxxxx
- Date: 22 Apr 2006 08:34:49 GMT
In article <e2aup0$orq$1@xxxxxxxxxxxxxxxxxxxxxxxxx>,
Christian Gollwitzer <Christian.Gollwitzer@xxxxxxxxxxxxxxx> wrote:
blmblm@xxxxxxxxxxxxx wrote:
Example at http://www.cs.trinity.edu/~mlewis/Rings/vwinbow/.
The author of the program that produces these huge files says "it is
vector graphics with a WHOLE BUNCH of tiny rectangles"
This is an exceptionally stupid way to represent what is really a bitmap
as pseudo-vector graphics. Essentially every single pixel is drawn
with the sequence:
0.8206095 1.0 0.0 SC
N
-0.008003304 0.001298332 M
-0.0023513036 0.001298332 L
-0.0023513036 0.001301752 L
-0.008003304 0.001301752 L
-0.008003304 0.001298332 L
P
G
WC
WF
R N
which is otherwise represented in three(!) bytes in an ordinary
uncompressed format.
If you cannot modify the program that writes this bloat, you can write a
simple script in awk, perl or similiar that extracts the three numbers
before each SC, multiplies them with 255 (which gets you th rgb-Values)
and writes them to a raw stream. You then hav just to count the number
of columns and rows and can produce an equally (if not better) looking
bitmap, that should be smaller about 60 times.
That sounds promising, but ....
If I understand you correctly, it assumes that there is exactly one
of these "draw a tiny rectangle" sequences per pixel, and that they
are in some order. True?
If not, never mind, but if so -- I'm not sure this is the case. As I
understand it, the PostScript is being generated by Java library
code, which has been presented with an internal representation
consisting of a lot of tiny rectangles, which probably are in some
sensible order (though I wouldn't want to bet on that without knowing
more), but which do not necessarily map one-to-one onto pixels.
In fact, if I understand the author of the code correctly, there can
be more rectangles than pixels; the rationale for this is that it
avoids the potential for "sampling problems".
--
| B. L. Massingill
| ObDisclaimer: I don't speak for my employers; they return the favor.
.
- Follow-Ups:
- Re: large images / EPSI
- From: Christian Gollwitzer
- Re: large images / EPSI
- From: Christian Gollwitzer
- Re: large images / EPSI
- References:
- large images / EPSI
- From: blmblm
- Re: large images / EPSI
- From: Michael Zedler
- Re: large images / EPSI
- From: blmblm
- Re: large images / EPSI
- From: Christian Gollwitzer
- large images / EPSI
- Prev by Date: Re: Your favorite paragraph-wide margin method
- Next by Date: Re: Some doubts about IEEEtran
- Previous by thread: Re: large images / EPSI
- Next by thread: Re: large images / EPSI
- Index(es):
Relevant Pages
|