| Author |
GifDecode Filter example
|
|
|
| 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
| |
|
| 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?
| |
|
| 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?
| |
|
| 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.
| |
|
| 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
| |
|
| 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
| |
|
| 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?
| |
|
| 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?
| |
|
| I debugged using PSALTER and it couldnt resolve VGIFDEBUG
|
|
|
|