Skip to content

Commit

Permalink
fixed index error in PS operator colorimage
Browse files Browse the repository at this point in the history
(fixes #279)
  • Loading branch information
mgieseki committed Nov 27, 2024
1 parent f2a92b6 commit d89d934
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/psdefs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ const char *PSInterpreter::PSDEFS =
"{ColorSpace load add}if bbknown{4 add}if ShadingType 5 eq{1 add}if(shfill)prcm"
"d}if end}if}if end}put @SD/image{dup type/dicttype eq{dup}{<</Width 6 index/He"
"ight 7 index/colorimg false>>}ifelse @execimg}put @SD/colorimage{<<2 index{/Wi"
"dth 2 index 8 add index/Height 4 index 9 add index}{/Width 8 index/Height 9 in"
"dth 2 index 7 add index/Height 4 index 8 add index}{/Width 8 index/Height 9 in"
"dex}ifelse/colorimg true>>@execimg}put/@imgbase(./)def/@imgdevice(jpeg)def/@ex"
"ecimg{@GD/@imgcnt 2 copy .knownget{1 add}{1}ifelse put begin<</imgid @GD/@imgc"
"nt get/ispng @imgdevice 0 3 getinterval(png)eq dup/suffix exch{(.png)}{(.jpg)}"
Expand Down

0 comments on commit d89d934

Please sign in to comment.