For Programmers: Free Programming Magazines  


Home > Archive > PostScript > March 2005 > GifDecode Filter example









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author GifDecode Filter example
Needo

2005-03-24, 8:58 am

I am looking that how can we use GifDecode or LZW filter to decode gif
files in ps.
If anyone has example code then please paste here.
Thanks

Helge Blischke

2005-03-24, 8:58 am

Needo wrote:
>
> I am looking that how can we use GifDecode or LZW filter to decode gif
> files in ps.
> If anyone has example code then please paste here.
> Thanks


Look if your Ghostscript distro still (or again) contains a file
viewgif.ps
which may be used as a template for more general GIF processing
routines.

If not, drop me an e-mail off the list (hDOTblischkeATsrzDOTde).

Helge

--
Helge Blischke
Softwareentwicklung
SRZ Berlin | Firmengruppe besscom
http://www.srz.de
Needo

2005-03-25, 3:57 am

I have used viewgif.ps from ghostscript library.

Thats how i called the function.

(c:\image.GIF) viewgif

But this is returning me some error.

did i call it correctly or there is any other calling convention?

Needo

2005-03-25, 3:57 am

I have used viewgif.ps from ghostscript library.

Thats how i called the function.

(c:\image.GIF) viewgif

But this is returning me some error.

did i call it correctly or there is any other calling convention?

Needo

2005-03-25, 3:57 am

I debugged using PSALTER and it couldnt resolve VGIFDEBUG

Aandi Inston

2005-03-25, 8:58 am

"Needo" <mnmateen@yahoo.com> wrote:

>I debugged using PSALTER and it couldnt resolve VGIFDEBUG


GIFDecode is not a standard part of PostScript. LZWDecode is, and is
supported by PSAlter.
----------------------------------------
Aandi Inston quite@dial.pipex.com http://www.quite.com
Please support usenet! Post replies and follow-ups, don't e-mail them.

Needo

2005-03-25, 8:58 am

I debugged using PSALTER and it couldnt resolve VGIFDEBUG

Alex Cherepanov

2005-03-25, 8:58 am

Needo wrote:
> Thats how i called the function.
> (c:\image.GIF) viewgif

How about
(c:\\image.GIF) viewgif

> But this is returning me some error.

What error?
Helge Blischke

2005-03-25, 3:58 pm

Needo wrote:
>
> I have used viewgif.ps from ghostscript library.
>
> Thats how i called the function.
>
> (c:\image.GIF) viewgif
>
> But this is returning me some error.
>
> did i call it correctly or there is any other calling convention?


Be aware that PostSceript is case sensitive. In my instance, the
procedure is named
viewGIF, and your path should probably contain a double '\', as Alex
stated.

Helge

--
Helge Blischke
Softwareentwicklung
SRZ Berlin | Firmengruppe besscom
http://www.srz.de
Needo

2005-03-28, 3:58 am

used this (c:\\image.GIF) viewgif

I tried to view the file using ghostview and ps alter and both gave the
following errors

Unrecoverable error: undefined in VGIFDEBUG



Alex Cherepanov

2005-03-28, 3:59 pm

Needo wrote:

> used this (c:\\image.GIF) viewgif
>
> I tried to view the file using ghostview and ps alter and both gave the
> following errors
>
> Unrecoverable error: undefined in VGIFDEBUG


This is an error in Ghostscript and I'll fix it in the CVS version
today. Somebody (see the CVS log) has introduced a new flag but forgot
to test the code in non-debug case.

You can define VGIFDEBUG flag in the command line as
gs -dVGIFDEBUG=false
or delete the lines containing VGIFDEBUG from your copy of viewgif.ps .
Alex Cherepanov

2005-03-28, 3:59 pm

Alex Cherepanov wrote:

> This is an error in Ghostscript


I have to correct myself. This is NOT an error in Ghostscript
but a user's error. New version of viewgif.ps is not compatible
with the old Ghostscript. Make sure you are running viewgif.ps
from the same release as the interpreter.

For instance:
gs -c (viewgif.ps) runlibfile (foo.gif) viewGIF showpage
Helge Blischke

2005-03-28, 8:58 pm

Needo wrote:
>
> I am looking that how can we use GifDecode or LZW filter to decode gif
> files in ps.
> If anyone has example code then please paste here.
> Thanks


Look if your Ghostscript distro still (or again) contains a file
viewgif.ps
which may be used as a template for more general GIF processing
routines.

If not, drop me an e-mail off the list (hDOTblischkeATsrzDOTde).

Helge

--
Helge Blischke
Softwareentwicklung
SRZ Berlin | Firmengruppe besscom
http://www.srz.de
Needo

2005-03-30, 9:00 am

I have used viewgif.ps from ghostscript library.

Thats how i called the function.

(c:\image.GIF) viewgif

But this is returning me some error.

did i call it correctly or there is any other calling convention?

Needo

2005-03-30, 9:00 am

I have used viewgif.ps from ghostscript library.

Thats how i called the function.

(c:\image.GIF) viewgif

But this is returning me some error.

did i call it correctly or there is any other calling convention?

Needo

2005-03-30, 9:00 am

I debugged using PSALTER and it couldnt resolve VGIFDEBUG

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com