[Tkinter-discuss] Default Tkinter Structure of a 640x480 PIL BMPFile?

Igor Novikov igor.e.novikov at gmail.com
Tue Apr 7 13:06:57 CEST 2009


There should be index.html in root folder PIL. The file redirects your
browser inside pil folder to simplify doc searching.
But this file uses JavaScript for redirecting, so JS should be allowed in
your default browser.

Regards,

Igor Novikov
sK1 Project
http://sk1pro


2009/4/7 Wayne Watson <sierra_mtnview at sbcglobal.net>

>  I downloaded the tar.gz file to Win and tried to open the hmtl and css(?)
> files there. The css file shows a tangle of words and characters. The html
> file I tried produces an invalid page.
>
> Igor Novikov wrote:
>
> If you need to change Imaging object directly or create it from sсratch
> such way requires low level programming, i.e. either
> C-extension or ctypes  module usage. Another way is standard PIL API usage.
> The API is a python wrapper for Imaging
> objects and according processing methods. I think your issue can be
> resolved by usual PIL API without low level tricks.
> Detailed PIL html docs you can download here:
>
> http://sk1project.org/downloads/PIL.tar.gz
>
> I hope this helps.
>
> On Thu, Apr 2, 2009 at 4:53 AM, Wayne Watson <sierra_mtnview at sbcglobal.net
> > wrote:
>
>> Yes, three items, format, memory, etc. That's not the issue.
>>
>> My question was directed specifically to your comment about Imaging.h.
>> Imaging.h looks like a C-program header file. I use Python with Windows XP.
>> Where do I look in Python to find the equivalent of Imaging.h.
>>
>> I think my answer requires a post to the PIL mail list.
>>
>> Igor Novikov wrote:
>>
>> Sorry you have mixed in question three different instances: BMP, PIL and
>> Tkinter.
>> PIL can works without Tkinter. So PIL image objects don't depend on
>> Tkinter.
>> But PIL can generates tcl/tk image objects for UI use cases.
>> BMP is a storage format. It's just an image file but not an image object
>> in memory.
>> So please clarify your question. Which information you need or which code
>> you
>> wish implementing?
>>
>>
>> On Wed, Apr 1, 2009 at 11:29 PM, Wayne Watson <
>> sierra_mtnview at sbcglobal.net> wrote:
>>
>>> I'm using Win Python, and have some small familiarity with library
>>> compents. How do I find Imaging.h?
>>>
>>> Igor Novikov wrote:
>>>
>>> Hi Wayne,
>>>
>>> I think you can find an answer in PIL source code. Take look at Imaging.h
>>> The header contains Imaging object definition. Loaded image is not BMP,
>>> PNG, TIFF
>>> or any other storage format because it's impossible to process image in
>>> memory
>>> using storage format structure (for example, they often use compression).
>>>
>>> Sincerely,
>>>
>>> Igor Novikov
>>> sK1 Project
>>> http://sk1project.org
>>>
>>> 2009/4/1 Wayne Watson <sierra_mtnview at sbcglobal.net>
>>>
>>>> Thanks, but there seem to be an unending # of mail lists for Python.
>>>> I've rummaged around the link before you gave, but zippo. I just tried
>>>> this on Google:
>>>>
>>>> bmp bits site:http://www.pythonware.com/library/pil/handbook/index.htm
>>>>
>>>> It searches the entire site. Zippo again.
>>>>
>>>> I guess it's another mail list to join.
>>>>
>>>> Whoops, this a better search:
>>>> bmp bits site: http://www.pythonware.com/library/pil/
>>>>
>>>> Nothing of interest. Well, maybe I stuck in 24 and one hit discusses
>>>> decoder.
>>>>
>>>> Michael O'Donnell wrote:
>>>>
>>>> Dear Wayne,
>>>>
>>>>   Probably better directed at the PIL/Image list:
>>>> http://mail.python.org/mailman/listinfo/image-sig
>>>>
>>>> In any case a BMP file has a structure independent of the software which
>>>> reads it, do a google for bmp to find information on it.
>>>>
>>>> Once an image is loaded into PIL, PIL offers methods to access
>>>> the image. See PIL documentation for these methods:
>>>> http://www.pythonware.com/library/pil/handbook/index.htm
>>>>
>>>> Mick
>>>>
>>>> 2009/4/1 Wayne Watson <sierra_mtnview at sbcglobal.net> <sierra_mtnview at sbcglobal.net>:
>>>>
>>>>
>>>>  See Subject. Does it have a header, DIB,  palette, and data section? What is
>>>> the default depth?
>>>> --
>>>>
>>>>            Wayne Watson (Watson Adventures, Prop., Nevada City, CA)
>>>>
>>>>              (121.01 Deg. W, 39.26 Deg. N) GMT-8 hr std. time)
>>>>
>>>>
>>>>           The Obama Administration plans to double the production
>>>>           in solar energy from 1% to 2% of the total energy
>>>>           supply in the next few years. One nuclear reaction
>>>>           would do the same. Heard on Bill Wattenburg, KGO-AM
>>>>
>>>>           "Less than all cannot satisfy Man." -- William Blake
>>>>
>>>>
>>>> _______________________________________________
>>>> Tkinter-discuss mailing listTkinter-discuss at python.orghttp://mail.python.org/mailman/listinfo/tkinter-discuss
>>>>
>>>>
>>>>
>>>>  --
>>>>
>>>>            Wayne Watson (Watson Adventures, Prop., Nevada City, CA)
>>>>
>>>>              (121.01 Deg. W, 39.26 Deg. N) GMT-8 hr std. time)**
>>>>           The Obama Administration plans to double the production
>>>>           in solar energy from 1% to 2% of the total energy
>>>>           supply in the next few years. One nuclear reaction
>>>>           would do the same. Heard on Bill Wattenburg, KGO-AM
>>>>
>>>>           "Less than all cannot satisfy Man." -- William Blake
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> Tkinter-discuss mailing list
>>>> Tkinter-discuss at python.org
>>>> http://mail.python.org/mailman/listinfo/tkinter-discuss
>>>>
>>>>
>>>
>>>  --
>>>
>>>            Wayne Watson (Watson Adventures, Prop., Nevada City, CA)
>>>
>>>              (121.01 Deg. W, 39.26 Deg. N) GMT-8 hr std. time)**
>>>           The Obama Administration plans to double the production
>>>           in solar energy from 1% to 2% of the total energy
>>>           supply in the next few years. One nuclear reaction
>>>           would do the same. Heard on Bill Wattenburg, KGO-AM
>>>
>>>           "Less than all cannot satisfy Man." -- William Blake
>>>
>>>
>>>
>>
>>  --
>>
>>            Wayne Watson (Watson Adventures, Prop., Nevada City, CA)
>>
>>              (121.01 Deg. W, 39.26 Deg. N) GMT-8 hr std. time)**
>>           The Obama Administration plans to double the production
>>           in solar energy from 1% to 2% of the total energy
>>           supply in the next few years. One nuclear reaction
>>           would do the same. Heard on Bill Wattenburg, KGO-AM
>>
>>           "Less than all cannot satisfy Man." -- William Blake
>>
>>
>>
>
> --
>
>            Wayne Watson (Watson Adventures, Prop., Nevada City, CA)
>
>              (121.01 Deg. W, 39.26 Deg. N) GMT-8 hr std. time)**
>
>
>           "Less than all cannot satisfy Man." -- William Blake
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tkinter-discuss/attachments/20090407/2fc39c82/attachment-0001.htm>


More information about the Tkinter-discuss mailing list