Skip to main content
Inspiring
March 3, 2008
Answered

Read a gif file in .ps

  • March 3, 2008
  • 4 replies
  • 688 views
Hi,

For my college project, I have to read a gif file of the university logo into a ps file. As I am a postscript newbie, I have googled to the best of my ability, but I can not figure out how to do this.

Can anyone help me here? I would be grateful for any help to embed a gif file into a .ps file

Thanks,
This topic has been closed for replies.
Correct answer _krishnan_1000_
Hi,

I did using img2ps file.

Thanks,

Karthik

4 replies

_krishnan_1000_AuthorCorrect answer
Inspiring
March 11, 2008
Hi,

I did using img2ps file.

Thanks,

Karthik
Inspiring
March 4, 2008
Hi Aandi,

I have to embed my company logo on the postscript file. That postscript file will be send to the printer device or a fax machine. I am sorry if I was not clear earlier. I know it must have been the subject. I am so sorry.

Thanks,

Karthik
Participating Frequently
March 4, 2008
So, it doesn't have to be a program to read a GIF file - you just need
to write the PostScript code for your logo?

In that case, if we assume it is a raster image, you can just use the
image or colorimage operator. If it is a vector logo, with lines and
text, you draw these in the usual way.

Aandi Inston
Participating Frequently
March 4, 2008
Are you quite sure that the project is not "Convert a GIF file to
PostScript" rather than "Read a GIF file in PostScript"?

Aandi Inston
Participating Frequently
March 4, 2008
This is possible, but a rather complex project. Certainly, thousands
of lines of complicated PostScript. It is a most unsuitable language.

PostScript can read files, one byte at a time, which is "all you need"
to read a GIF file. You will need to know the GIF file format exactly
and in detail.

To read GIF you will need to decompress the LZW compression in the
file. In some cases you can use the built in LZW decompression, but
only when the LZW is based on 8 bit samples, as I understand it (but I
may misunderstand).

Aandi Inston