Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!goblin3!goblin2!goblin.stu.neva.ru!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.014 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'python.': 0.02; 'subject:Python': 0.05; '(even': 0.05; 'subject:help': 0.07; 'python': 0.09; 'naturally': 0.09; 'portable': 0.09; 'porting': 0.09; 'canvas,': 0.16; 'png': 0.16; 'subject:3.3': 0.16; 'wrote:': 0.17; 'drawing': 0.17; 'subject:need': 0.17; 'all,': 0.21; 'java': 0.21; 'script': 0.24; 'header:In-Reply-To:1': 0.25; 'header:User- Agent:1': 0.26; 'wrote': 0.26; '(most': 0.27; 'am,': 0.27; 'disk': 0.27; 'lines': 0.28; 'post': 0.28; 'received:72.167.82': 0.29; 'convert': 0.29; 'this.': 0.29; 'install': 0.29; 'file': 0.32; 'help,': 0.32; 'could': 0.32; 'to:addr:python-list': 0.33; 'project': 0.34; 'mine': 0.35; 'there': 0.35; 'enough': 0.36; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'easily': 0.39; 'called': 0.39; 'little': 0.39; 'your': 0.60; 'you.': 0.61; 'save': 0.61; 'received:network': 0.61; 'received:phx3.secureserver.net': 0.62; 'received:prod.phx3.secureserver.net': 0.62; 'different': 0.63; 'received:unknown': 0.63; 'burden': 0.65; 'header:Reply-To:1': 0.68; 'reply-to:no real name:2**0': 0.72; 'bitmap': 0.84; 'construct': 0.84; 'draws': 0.91; 'examine': 0.95 Date: Sun, 28 Oct 2012 23:13:40 -0700 From: Andrew Robinson User-Agent: Mozilla/5.0 (X11; Linux i686; rv:8.0) Gecko/20111126 Thunderbird/8.0 MIME-Version: 1.0 To: python-list@python.org Subject: Re: I need help installing pypng in Python 3.3 References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: andrew3@r3dsolutions.com List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 24 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1351516779 news.xs4all.nl 6981 [2001:888:2000:d::a6]:57658 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:32373 On 10/29/2012 05:23 AM, icgwh wrote: > Hello all, > > I am very new to python. I am currently porting a little project of mine from java to python and I need to be able to construct and write png images. I naturally turned myself toward pypng to accomplish this. I don't know if this will help, but: There is a package called image magic; which can convert any image to any other type of image. If that would not be a burden to install (most OS's have pre-compiled working binaries) -- you could easily write a portable bitmap file to disk using python (even without a library) -- and then convert it to png. I have a little script I wrote in python to create a canvas, and allow you to draw on it using very simple line drawing primitives, and then save it to PBM. It's simple enough (only draws lines with different pens) that you could examine it and write your own script to do the same or better. If this interests you, I will see if I can post the py script; or email it to you. --Andrew.