You Are Here:

Community: Developer Discussion Boards

#1 Old Is PyforS60 supports Image Sequences handling? - 2006-11-13, 10:40

Join Date: Jun 2005
Posts: 2
nibbleyn
Offline
Registered User
From PIL handbook we can see:
The Python Imaging Library contains some basic support for image sequences (also called animation formats). Supported sequence formats include FLI/FLC, GIF, and a few experimental formats. TIFF files can also contain more than one frame. When you open a sequence file, PIL automatically loads the first frame in the sequence.
You can use the seek and tell methods to move between different frames:
Example: Reading sequences
import Image
im = Image.open("animation.gif")
im.seek(1) # skip to the second frame
try:
while 1:
im.seek(im.tell()+1)
# do something to im
except EOFError:
pass # end of sequence

I am wondering whether pyforS60 can also implement this? I search in graphic library but not find seek and tell method. If it is not supported, how could I write an extension to support this methods? Great thanks!
Reply With Quote

#2 Old Re: Is PyforS60 supports Image Sequences handling? - 2006-11-13, 13:37

Join Date: Feb 2005
Posts: 1,353
Location: Belgium (Europe)
cyke64's Avatar
cyke64
Offline
Super Contributor
Quote:
Originally Posted by nibbleyn
From PIL handbook we can see:
The Python Imaging Library contains some basic support for image sequences (also called animation formats). Supported sequence formats include FLI/FLC, GIF, and a few experimental formats. TIFF files can also contain more than one frame. When you open a sequence file, PIL automatically loads the first frame in the sequence.
You can use the seek and tell methods to move between different frames:
Example: Reading sequences
import Image
im = Image.open("animation.gif")
im.seek(1) # skip to the second frame
try:
while 1:
im.seek(im.tell()+1)
# do something to im
except EOFError:
pass # end of sequence

I am wondering whether pyforS60 can also implement this? I search in graphic library but not find seek and tell method. If it is not supported, how could I write an extension to support this methods? Great thanks!
hello ,

No , PyS60 doesn't support PIL
But you can simulate this image sequences with standard MBM (Multi Bitmaps) files from Symbian OS !
One MBM file can contain many images in itself. Each image is indexed by a number.
Look for more details on this post.
Many code snipped can be found for handling mbm files and a python S60 script allow to make one mbm file from severals gif files !


pys60 1.4.5,1.9.7,pygame,PyS60 CE on E90 , N810 with Python 2.5.2 and ... last PyS60 1.9.7 with touch ui on 5800 !

pys60 extension modules on http://cyke64.googlepages.com/
Reply With Quote

#3 Old Re: Is PyforS60 supports Image Sequences handling? - 2006-11-13, 17:09

Join Date: Dec 2004
Posts: 646
jplauril's Avatar
jplauril
Offline
Forum Nokia Expert
PyS60 graphics support isn't actually built on the PIL - it just has a similar API built on what Symbian OS provides natively. I don't remember right now if Symbian has support for other multi-image files besides MBM - is anyone wiser here?
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
--- ???save image problem??? --- ferenn Mobile Java Media (Graphics & Sounds) 6 2007-10-01 15:33
Opening a JPEG Image ummarbhutta Mobile Java Media (Graphics & Sounds) 8 2007-02-15 07:34
how to cut some part of Image mshouab Mobile Java Media (Graphics & Sounds) 2 2006-08-04 10:05
HELP: Mutable Image to Immutable Image? rj_cybersilver Mobile Java Media (Graphics & Sounds) 1 2005-03-26 10:58
how to get coordinate & file name of an Image item? J2me supports array? URGENT! lingtze1 Mobile Java General 1 2003-04-22 14:56

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia