Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <h1>Solution without writing your own GIF reader</h1> <p>For uses other than your own edification, try this.</p> <h2>A few notes</h2> <ul> <li>Your GIF file is GIF89a. You linked to the GIF87a specification; the <a href="http://www.w3.org/Graphics/GIF/spec-gif89a.txt" rel="nofollow noreferrer">89a specification is here</a>.</li> <li>You're seem to be concerned that using a library to parse the image will hurt performance. This makes no sense. The libraries are generally implemented in optimized C; your hand-rolled solution would be written in PHP, an interpreted language.</li> <li>You mentioned PCX, which libraries like imagemagick do support.</li> </ul> <h2>Or just use PNG</h2> <p>According to the <a href="http://www.zebra.com/id/zebra/na/en/documentlibrary/manuals/en/zpl_ii_programming2.html" rel="nofollow noreferrer">ZPL 2 programming manual</a>, PNG is supported. For example, the <code>~DY</code> (Download Graphics) command takes a <code>b</code> (format) parameter, for which <code>P</code> (PNG) is an option, besides the default GRF. See also <a href="https://stackoverflow.com/questions/8818688/printing-images-png-to-a-network-zebra-printer-zpl-z64-b64">Printing PNG images to a zebra network printer</a>.</p> <p>There are <em>lots</em> of libraries for converting GIF to PNG. You could use <a href="http://www.php.net/imagick" rel="nofollow noreferrer">ImageMagick (PHP binding)</a>, or just use the PHP functions <a href="http://www.php.net/imagecreatefromgif" rel="nofollow noreferrer"><code>imagecreatefromgif</code></a> and <a href="http://www.php.net/imagepng" rel="nofollow noreferrer"><code>imagepng</code></a>.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload