Location: PHPKode > scripts > phpwsListings > phpwslistings/docs/docmanager/docid_15469.html
<!--
$Id: docid_15469.html,v 1.3 2003/02/28 20:14:10 dtseiler Exp $
-->
<font size=-2><pre>
$Author: dtseiler $
$Revision: 1.3 $
$Date: 2003/02/28 20:14:10 $
</pre></font>

<div align="center"><h2><a name="top">Using gif2png and the problem with gifs</a></h2></div>

<blockquote><p>phpwsListings requires the availability of the gif2png program.  This program will convert gif images to png images.  The reasons for this are both technical and philosophical.  </p></blockquote>
<p><br />
<b><a name="philosophical">Philosophical Reasons</a></b>&nbsp;<a href="#philosophical">&raquo;</a></p>
<blockquote>
<p>The philosophical:  the "GIF" compression scheme is patented and the owners of the patent are pulling some shaky stuff.  Read the propaganda at <a href="http://burnallgifs.org/">burnallgifs.org</a>.</p>
</blockquote>
<p><br />
<b><a name="technical">Technical Reasons</a></b>&nbsp;<a href="#technical">&raquo;</a></p>
<blockquote>
<p>The philosophical reason also leads to the technical.  The GD libraries which php uses to do image manipulation no longer support gif for this same reason.  This alone does not prevent me from allowing gifs.  However phpwsListings makes thumbnails of uploaded listings images, and this requires a non-gif image, so I just convert any gif to a png from the very start.</p>
</blockquote>
<p><br />
<b><a name="download">Download gif2png</a></b>&nbsp;<a href="#download">&raquo;</a></p>
<blockquote>
<p>You can get gif2png from the ibiblio mirrors:
<ul>
<li><a href="http://www.ibiblio.org/pub/Linux/apps/graphics/convert/gif2png-2.4.6.tar.gz">gif2png source .gz</a></li>
<li><a href="http://www.ibiblio.org/pub/Linux/apps/graphics/convert/gif2png-2.4.6-1.i386.rpm">gif2png binary rpm</a></li>
</ul></p>
</blockquote>
<p><br />
<b><a name="config">Configuration for gif2png</a></b>&nbsp;<a href="#config">&raquo;</a></p>
<blockquote>
<p>By default phpwsListings will look for /usr/bin/gif2png.  If you have it installed elsewhere, you will need to update your $gif2png variable in phpwslistings/conf/config.php.  If you cannot install gif2png or do not want to install it, your alternative is to remove the "image/gif" entry from the $allowedImageTypes variable in phpwslistings/conf/config.php.</p>
</blockquote>

<p><br />
<a href="#top">Return to the top of this page.</a></p>
<hr />
<p style="margin-top: 0cm">If you still have questions or concerns regarding this document, please feel free to <a
href="https://sourceforge.net/tracker/?func=add&amp;group_id=73598&amp;atid=538275">submit a support request</a>.</p>
Return current item: phpwsListings