Hi,
i'm trying to overlay some icons on a weathermap. I intend to use
image.composite for that.
Just to try out, I load the weathermap background and see if I can at
it in the composite:
back = images.Image(urlfetch.Fetch('http://www.deredactie.be/html/
images/v3/bg_weer_belgie_dag.jpg').content)
img = images.composite([(back, 0 ,0, 1.0, images.TOP_LEFT)], 468, 225,
0, images.PNG)
I get an error (see stack trace) : TypeError: object of type 'Image'
has no len()
What am I doing wrong ???
Thx for helping me out.
<pre>Traceback (most recent call last):
File "/Applications/GoogleAppEngineLauncher.app/Contents/
Resources/GoogleAppEngine-default.bundle/Contents/Resources/
google_appengine/google/appengine/ext/webapp/__init__.py", line
501, in __call__
handler.get(*groups)
File "/Users/ln/Documents/weer2atom/weer2atom.py", line
45, in get
img = images.composite([(back, 0 ,0, 1.0, images.TOP_LEFT)], 468,
225, 0, images.PNG)
.....
for i in xrange(len(self.image_)): n += self.lengthString
(self.image_[i].ByteSize())
File "/Applications/GoogleAppEngineLauncher.app/Contents/
Resources/GoogleAppEngine-default.bundle/Contents/Resources/
google_appengine/google/appengine/api/images/
images_service_pb.py", line 561, in ByteSize
n += self.lengthString(len(self.content_))
TypeError: object of type 'Image' has no len()
</pre>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---