Working on a tool called from a workflow script that needs to access a
scaled image data from either ATNewsItem or ATImage. PIL is installed
and working, accessing the scaled image through HTTP works fine.
No matter how I access programmatically, all I can seem to get is the
full un-scaled image.
I've tried:
Traversing:
image = restrictedTraverse('objectpath/image_mini')
image.get_data()
and replicating what traversal does:
field = imageobj.getField('image')
image = field.getScale(self, scale='mini')
image.get_data()
If I call field.getSize(image, scale='mini'), I can get the proper
dimensions.
Any suggestions as to how I can get the scaled image without writing my
own code to scale it with PIL?
--
Dave
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference_______________________________________________
Archetypes-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/archetypes-users