/usr/share/ghostscript/lib
NameSizeModeActions
acctest.ps42690644editdlrm
align.ps21560644editdlrm
bj8.rpd6390644editdlrm
bj8gc12f.upp15320644editdlrm
bj8hg12f.upp15310644editdlrm
bj8oh06n.upp15170644editdlrm
bj8pa06n.upp15250644editdlrm
bj8pp12f.upp15420644editdlrm
bj8ts06n.upp15300644editdlrm
bjc610a0.upp15270644editdlrm
bjc610a1.upp15160644editdlrm
bjc610a2.upp15170644editdlrm
bjc610a3.upp15220644editdlrm
bjc610a4.upp15300644editdlrm
bjc610a5.upp15170644editdlrm
bjc610a6.upp15170644editdlrm
bjc610a7.upp15200644editdlrm
bjc610a8.upp15260644editdlrm
bjc610b1.upp15160644editdlrm
bjc610b2.upp15170644editdlrm
bjc610b3.upp15220644editdlrm
bjc610b4.upp15300644editdlrm
bjc610b6.upp15170644editdlrm
bjc610b7.upp15210644editdlrm
bjc610b8.upp15260644editdlrm
bjc6000a1.upp16600644editdlrm
bjc6000b1.upp16600644editdlrm
caption.ps17590644editdlrm
cbjc600.ppd111480644editdlrm
cbjc800.ppd114910644editdlrm
cdj550.upp16900644editdlrm
cdj690.upp19990644editdlrm
cdj690ec.upp20600644editdlrm
cid2code.ps44910644editdlrm
dnj750c.upp28080644editdlrm
dnj750m.upp19750644editdlrm
docie.ps74980644editdlrm
font2pcl.ps184390644editdlrm
ghostpdf.ppd256430644editdlrm
gslp.ps207280644editdlrm
gsnup.ps26340644editdlrm
gs_ce_e.ps22190644editdlrm
gs_css_e.ps49220644editdlrm
gs_il2_e.ps26310644editdlrm
gs_kanji.ps40070644editdlrm
gs_ksb_e.ps31450644editdlrm
gs_l.xbm19450644editdlrm
gs_l.xpm27510644editdlrm
gs_lgo_e.ps27340644editdlrm
gs_lgx_e.ps17660644editdlrm
gs_l_m.xbm19550644editdlrm
gs_m.xbm9450644editdlrm
gs_m.xpm14370644editdlrm
gs_m_m.xbm9550644editdlrm
gs_s.xbm5940644editdlrm
gs_s.xpm9570644editdlrm
gs_s_m.xbm6040644editdlrm
gs_t.xbm3450644editdlrm
gs_t.xpm6050644editdlrm
gs_t_m.xbm3550644editdlrm
gs_wl1_e.ps24950644editdlrm
gs_wl2_e.ps24940644editdlrm
gs_wl5_e.ps25120644editdlrm
ht_ccsto.ps2281430644editdlrm
image-qa.ps730500644editdlrm
jispaper.ps7840644editdlrm
landscap.ps14680644editdlrm
lines.ps37360644editdlrm
mkcidfm.ps223210644editdlrm
necp2x.upp10450644editdlrm
necp2x6.upp10690644editdlrm
pdf2dsc.ps80630644editdlrm
PDFA_def.ps25820644editdlrm
PDFX_def.ps38640644editdlrm
pdf_info.ps151520644editdlrm
pf2afm.ps152950644editdlrm
pfbtopfa.ps9960644editdlrm
PM760p.upp11600644editdlrm
PM760pl.upp11240644editdlrm
PM820p.upp11420644editdlrm
PM820pl.upp11170644editdlrm
ppath.ps18190644editdlrm
pphs.ps68440644editdlrm
prfont.ps72130644editdlrm
printafm.ps48980644editdlrm
ps2ai.ps223060644editdlrm
ps2epsi.ps60700644editdlrm
ras1.upp2150644editdlrm
ras3.upp2140644editdlrm
ras4.upp2200644editdlrm
ras8m.upp2090644editdlrm
ras24.upp2190644editdlrm
ras32.upp1960644editdlrm
rollconv.ps125260644editdlrm
s400a1.upp14540644editdlrm
s400b1.upp16030644editdlrm
sharp.upp19360644editdlrm
sipixa6.upp5290644editdlrm
st640ih.upp22810644editdlrm
st640ihg.upp15080644editdlrm
st640p.upp19140644editdlrm
st640pg.upp11410644editdlrm
st640pl.upp18780644editdlrm
st640plg.upp11050644editdlrm
stc.upp19230644editdlrm
stc2.upp19040644editdlrm
stc2s_h.upp22720644editdlrm
stc2_h.upp18790644editdlrm
stc200_h.upp18480644editdlrm
stc300.upp21360644editdlrm
stc300bl.upp13410644editdlrm
stc300bm.upp14300644editdlrm
stc500p.upp19030644editdlrm
stc500ph.upp19030644editdlrm
stc600ih.upp22810644editdlrm
stc600p.upp11510644editdlrm
stc600pl.upp11150644editdlrm
stc640p.upp10950644editdlrm
Stc670p.upp11590644editdlrm
Stc670pl.upp11240644editdlrm
Stc680p.upp11400644editdlrm
Stc680pl.upp11150644editdlrm
stc740ih.upp21230644editdlrm
Stc740p.upp10390644editdlrm
Stc740pl.upp11150644editdlrm
Stc760p.upp11410644editdlrm
Stc760pl.upp11150644editdlrm
Stc777p.upp11400644editdlrm
Stc777pl.upp11150644editdlrm
stc800ih.upp21580644editdlrm
stc800p.upp11150644editdlrm
stc800pl.upp10970644editdlrm
stc1520h.upp21540644editdlrm
stcany.upp6730644editdlrm
stcany_h.upp6810644editdlrm
stcinfo.ps255170644editdlrm
stcolor.ps50650644editdlrm
stc_h.upp19130644editdlrm
stc_l.upp7340644editdlrm
stocht.ps24940644editdlrm
Stp720p.upp11580644editdlrm
Stp720pl.upp11150644editdlrm
Stp870p.upp11400644editdlrm
Stp870pl.upp11150644editdlrm
traceimg.ps13820644editdlrm
traceop.ps25720644editdlrm
uninfo.ps59860644editdlrm
viewcmyk.ps19840644editdlrm
viewgif.ps53950644editdlrm
viewjpeg.ps56910644editdlrm
viewmiff.ps42530644editdlrm
viewpbm.ps102820644editdlrm
viewpcx.ps52320644editdlrm
viewps2a.ps11360644editdlrm
winmaps.ps36050644editdlrm
zeroline.ps23170644editdlrm
Edit: /usr/share/ghostscript/lib/viewgif.ps (5395B)
% Copyright (C) 2001-2021 Artifex Software, Inc. % All Rights Reserved. % % This software is provided AS-IS with no warranty, either express or % implied. % % This software is distributed under license and may not be copied, % modified or distributed except as expressly authorized under the terms % of the license contained in the file LICENSE in this distribution. % % Refer to licensing information at http://www.artifex.com or contact % Artifex Software, Inc., 1305 Grant Avenue - Suite 200, Novato, % CA 94945, U.S.A., +1(415)492-9861, for further information. % % viewgif.ps % Display a GIF file. /read1 % read1 { read pop } bind def /read2 % read2 { dup read1 exch read1 8 bitshift add } bind def /readGIFheader % readGIFheader { 20 dict begin dup 6 string readstring pop dup (GIF87a) eq exch (GIF89a) eq or not { (Not a GIF file.\n) print cleartomark stop } if dup read2 /Width exch def dup read2 /Height exch def dup read1 dup 128 ge /GlobalColor exch def dup -4 bitshift 7 and 1 add /BitsPerPixel exch def %***BOGUS?*** dup 8 and 0 ne /PaletteSorted exch def 7 and 1 add dup /BitsPerPixel exch def 1 exch bitshift /PaletteSize exch def dup read1 /BackgroundIndex exch def dup read1 15 add 64 div /AspectRatio exch def GlobalColor { PaletteSize 3 mul string readstring pop /GlobalPalette exch def } if currentdict end } bind def /readGIFimageHeader % readGIFimageHeader % Note: GIF header must be on dict stack { 10 dict begin { dup read1 dup (!) 0 get ne { exit } if pop % extension dup read1 pop { dup read1 dup 0 eq { pop exit } if { dup read1 pop } repeat } loop } loop (,) 0 get ne { (Not a GIF image.\n) print stop } if dup read2 /Left exch def dup read2 /Top exch def dup read2 /Width exch def dup read2 /Height exch def dup read1 dup 128 ge /LocalColor exch def dup 64 and 0 ne /Interlaced exch def LocalColor { 7 and 1 add /BitsPerPixel exch def 1 BitsPerPixel bitshift 3 mul string readstring pop /Palette exch def } { pop pop /Palette GlobalPalette def } ifelse currentdict end } bind def /imageGIF % imageGIF { /ImageOut where { pop % We know BitsPerComponent = 8, Decode = [0 255]. % and there is only a single data source which is % either a filter or a string whose size is exactly % the width of the row. dup /DataSource get dup type /stringtype eq { ImageOut exch writestring } { pop dup /Width get string 1 index /Height get { 1 index /DataSource get 1 index readstring pop ImageOut exch writestring } repeat pop pop } ifelse } { image } ifelse } bind def /viewGIF % viewGIF - { save 20 dict begin /saved exch def dup type /stringtype eq { (r) file } if /F exch def /ImageOutFile where { /ImageOut ImageOutFile (w) file def } if F readGIFheader /Header exch def currentdict Header end begin begin VGIFDEBUG { Header { exch == == } forall (----------------\n) print flush } if F readGIFimageHeader /ImageHeader exch def currentdict ImageHeader end begin begin VGIFDEBUG { ImageHeader { exch == == } forall (----------------\n) print flush } if /D F << /InitialCodeLength F read1 /FirstBitLowOrder true /BlockData true /EarlyChange 0 >> /LZWDecode filter def [/Indexed /DeviceRGB 1 BitsPerPixel bitshift 1 sub Palette] setcolorspace matrix currentmatrix 0 1 3 { 2 copy get dup 0 ne { dup abs div } if 3 copy put pop pop } for setmatrix << /ImageType 1 /ImageMatrix [1 0 0 -1 0 Height] /BitsPerComponent 8 /Decode [0 255] Interlaced { /Width Width /Height 1 /row Width string def /DataSource row >> /I exch def /inter % inter - { /denom exch def /num exch def gsave /lines Height denom 1 sub add num sub denom idiv def 0 1 lines 1 sub { Height exch denom mul num add sub I /ImageMatrix get 5 3 -1 roll put D row readstring pop pop I imageGIF } for grestore } bind def 0 8 inter 4 8 inter 2 4 inter 1 2 inter } { /Width Width /Height Height /DataSource D >> imageGIF } ifelse saved end end end restore } 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" % so the output size is influenced by the original image. /viewGIFgetsize % ==> [width height] { save 20 dict begin /saved exch def dup type /stringtype eq { (r) file } if /F exch def F readGIFheader /Header exch def currentdict Header end begin begin VGIFDEBUG { Header { exch == == } forall (----------------\n) print flush } if F readGIFimageHeader /ImageHeader exch def currentdict ImageHeader end begin begin F 0 setfileposition % reset file pointer Width Height saved end end end restore } bind def