summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRay Johnston <ray.johnston@artifex.com>2021-09-02 19:34:21 -0700
committerRay Johnston <ray.johnston@artifex.com>2021-09-02 19:34:21 -0700
commit7e3e079e99d32324144b9ed8d82ba265d5f184bb (patch)
treecf05520486a337ff6194063ee101d3a0c66cbf9a /lib
parent2c205c68593f63701c5ba40ec2bad07121fdf4a4 (diff)
downloadghostpdl-7e3e079e99d32324144b9ed8d82ba265d5f184bb.tar.gz
Fix Bug 703904. Fix example in viewGIF to add setting HWResolution.
The example shown in a comment to set the PageSize from the GIF image size also needs the resolution set to 72 (HWResolution).
Diffstat (limited to 'lib')
-rw-r--r--lib/viewgif.ps2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/viewgif.ps b/lib/viewgif.ps
index f017688e1..0426e2f46 100644
--- a/lib/viewgif.ps
+++ b/lib/viewgif.ps
@@ -161,7 +161,7 @@
} bind def
% This lets you do stuff on the command line like:
-% gs -sDEVICE=pdfwrite -o stuff%03d.pdf viewgif.ps -c "(image.gif) << /PageSize 2 index viewGIFgetsize 2 array astore >> setpagedevice viewGIF"
+% gs -sDEVICE=pdfwrite -o stuff%03d.pdf viewgif.ps -c "(image.gif) << /PageSize 2 index viewGIFgetsize 2 array astore /HWResolution [ 72 72 ] >> setpagedevice viewGIF"
% so the output size is influenced by the original image.
/viewGIFgetsize % <file|string> ==> [width height]
{