summaryrefslogtreecommitdiff
path: root/Master/tlpkg/tlgs/lib/viewgif.ps
diff options
context:
space:
mode:
authorReinhard Kotucha <reinhard.kotucha@web.de>2021-09-29 01:02:39 +0000
committerReinhard Kotucha <reinhard.kotucha@web.de>2021-09-29 01:02:39 +0000
commit032fbe3299ba69dfde0e6b488c63d7172f5526cc (patch)
tree609e446095e13bafd341617218852c3db3bb254c /Master/tlpkg/tlgs/lib/viewgif.ps
parent73f30335fe2918b048eaaedddc30503169fb8be9 (diff)
Upgrade gs-9.54.0 -> gs-9.55.0
git-svn-id: svn://tug.org/texlive/trunk@60648 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/tlpkg/tlgs/lib/viewgif.ps')
-rw-r--r--Master/tlpkg/tlgs/lib/viewgif.ps6
1 files changed, 4 insertions, 2 deletions
diff --git a/Master/tlpkg/tlgs/lib/viewgif.ps b/Master/tlpkg/tlgs/lib/viewgif.ps
index a261bf7e654..0426e2f46c0 100644
--- a/Master/tlpkg/tlgs/lib/viewgif.ps
+++ b/Master/tlpkg/tlgs/lib/viewgif.ps
@@ -42,7 +42,9 @@
GlobalColor
{ PaletteSize 3 mul string readstring pop
/GlobalPalette exch def
- } if
+ } {
+ pop
+ } ifelse
currentdict end
} bind def
@@ -159,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]
{