Click for: WEBPAGE INDEX
web page last updated Sunday 23rd March 2003 630pm
JPEG device -sDEVICE=jpeg
is probably going to be the
default device, I have written a jpeg viewer that can
view in HAM8, I have carefully done it so it is suitable
for monochrome text + curves. PS + PDF docs tend to have
smooth monochrome curves, this HAM8 gives you sharply
defined smooth unbroken monochrome curves eg text.
It also gives you pseudo-true colour HAM8 pictures.
The viewer also has an optional 216 colour viewer, with
no dithering. dithering can look horrible on AGA. This viewer
simply rounds each 24 bit pixel to the nearest colour in the
216 colour palette. This is done by rounding each r-g-b component
to the nearest multiple of 51, ie
0, 51, 102, 153, 204, 255
so eg 25 is rounded to 0, but 26 is rounded to 51, this produces
good results. This 216 colour viewer is suitable for colour-text
eg annots.pdf
|
The output of jpeg and jpeggray is "jpeg file interchange format"
or JFIF. There are 2 versions: 24 bit colour produced by
-sDEVICE=jpeg
and 256 shades of grey format produced by -sDEVICE=jpeggray
.
For 256-shades of grey jpegs, my viewer will automatically use a
256 shades of gray palette.
Also in the viewer is a Cybergraphics viewer, fully untested,
the code lifted from the example main.c from current jpeg.library.
So hopefully this will cover 24-bit graphics cards.
There is one command line control argument for jpeg eg
-dJPEGQ=100
gives you maximum quality.
(there is an alternative command line argument to this but it has identical
effect)
The default setting is 75 so for ultra high quality picture of the
tiger type:
gs_000 -sDEVICE=jpeg -dJPEGQ=100 t:tiger100_%d.jpeg tiger.eps
|
The output file is tiger100_1.jpeg which is
244629, compared to the default setting of 75% which produces 79212 bytes.
TRY OUT MY HAM8 VIEWER whooshjpeg.lha:
Select super-hi-res-laced + horizontal scaling factor of 2 for best results.
To view in HAM8 type:
whooshjpeg tiger100_1.jpeg h ?
|
To view in 216 colour type:
whooshjpeg annots100_2.jpeg t ?
|
To view with Cybergraphics (UNTESTED, so send me feedback),
whooshjpeg tiger100_1.jpeg c ?
|