I don't think yours is a permitted conversion[1]. It seems that PIL supports xpm format only for reading, but I could be wrong.<div><br></div><div>Regards.</div><div><br><div><br></div><div>[1] <a href="http://www.daniweb.com/forums/thread260074.html">http://www.daniweb.com/forums/thread260074.html</a><br>

<br><div class="gmail_quote">On Tue, Aug 3, 2010 at 10:45 AM, Navid Parvini <span dir="ltr"><<a href="mailto:parvini_navid@yahoo.com">parvini_navid@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<table cellspacing="0" cellpadding="0" border="0"><tbody><tr><td valign="top" style="font:inherit">Dear All,<br><br>I want to convert a .png file to .xpm using PIL. I used the following command:<br>Image.open( "t1.png").save("a1.xpm"). But it doesn't work and I could not convert it.<br>

<br>Would you please help me and let me know that how can I convert/save .xpm files in PIL.<br><br>Thank you in advance.<br><br>Thanks.<br>Navid<br></td></tr></tbody></table><br>

      <br>--<br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Matteo Landi<br><a href="http://www.matteolandi.net/">http://www.matteolandi.net/</a><br>
</div></div>