Help! Problems with EPS files and colorimage 
Author Message
 Help! Problems with EPS files and colorimage

Hi,

  I'm having trouble including EPS files into my postscript file.
Everything seems to work fine, except for EPS files with the
'colorimage' command.  I've messed around a whole lot, and no luck!  I
think my problems have more to do with the colorimage command than
anything else.

  Here is a code sample:

=================
gsave
/SaveState save def
/showpage {} def

%%BeginDocument: crud2.eps
%!PS-Adobe-3.0 EPSF-3.0
%%Creator: GIMP PostScript file plugin V 1.05 by Peter Kirchgessner
%%Title: /home/memmett/crud2.eps
%%CreationDate: Tue Nov 16 11:16:17 1999
%%DocumentData: Clean7Bit
%%LanguageLevel: 2
%%Pages: 1
%%BoundingBox: 14 14 87 87
%%EndComments
%%BeginProlog
% Use own dictionary to avoid conflicts
5 dict begin
%%EndProlog
%%Page: 1 1
% Translate for offset
14.400000 14.400000 translate
% Translate to begin of first scanline
0.000000 72.000000 translate
72.000000 -72.000000 scale
% Variable to keep one line of raster data
/scanline 10 24 mul string def
% Image geometry
10 10 8
% Transformation matrix
[ 10 0 0 10 0 0 ]
{ currentfile scanline readhexstring pop } false 3
colorimage
e4e4e4d5d5d5c3c3c3b0b0b0a1a1a1999999999999a1a1a1b0b0b0c3c3c3
d8d8d8c3c3c3a9a9a99090907b7b7b6f6f6f6f6f6f7b7b7b909090a9a9a9
cbcbcbb0b0b0909090707070545454444444444444545454707070909090
c2c2c2a1a1a17b7b7b5454543333332020202020203333335454547b7b7b
bdbdbd9999996f6f6f4444442020200c0c0c0c0c0c2020204444446f6f6f
bdbdbd9999996f6f6f4444442020200c0c0c0c0c0c2020204444446f6f6f
c2c2c2a1a1a17b7b7b5454543333332020202020203333335454547b7b7b
cbcbcbb0b0b0909090707070545454444444444444545454707070909090
d8d8d8c3c3c3a9a9a99090907b7b7b6f6f6f6f6f6f7b7b7b909090a9a9a9
e4e4e4d5d5d5c3c3c3b0b0b0a1a1a1999999999999a1a1a1b0b0b0c3c3c3
showpage
%%Trailer
end
%%EOF
%%EndDocument

/SaveState restore
grestore

/Helvetica findfont 12 scalefont setfont
0 200 moveto
(I never see this text) show
showpage
======================

I find that nothing past the %%EndDocument is executed! (gs v5.10).
Even if I make a horrible typo (ie, put asdfklj;sfad after the last
show) no errors are raised!

Any suggestions?

Thanks,
Matt



Sun, 05 May 2002 03:00:00 GMT  
 Help! Problems with EPS files and colorimage

Quote:
>  I'm having trouble including EPS files into my Postscript file.
>Everything seems to work fine, except for EPS files with the
>'colorimage' command.  I've messed around a whole lot, and no luck!  I
>think my problems have more to do with the colorimage command than
>anything else.
>/scanline 10 24 mul string def
>% Image geometry
>10 10 8

...

Your buffer size is the problem. It must be exactly one scan line, but
it is eight scan lines (confusing bits and bytes).

Change the 24 -> 3 and the image will stop where expected, rather than
consuming the whole file.
----------------------------------------

Visit http://www.*-*-*.com/ ,
PSAlter, psalters, tea, and small {*filter*} animals. And stuff.  



Mon, 06 May 2002 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. HELP: including eps file into other eps file

2. Help: problem with inserting a .eps file into tex

3. HELP - problems with EPS files from Windows Pagemaker

4. colorimage performance problem

5. colorimage, data from function problem

6. colorimage substitution help

7. Problem with viewing all pages of a ps file with embedded eps files

8. Problem including EPS file in another PS file

9. Problems with Fonts in .eps files wrapped in .ps files

10. Help make 1 set of data for many colorimage's

11. HELP: colorimage

12. using colorimage, want rgb data in ps file

 

 
Powered by phpBB® Forum Software