Re: [google-appengine] get_original_metadata working?

2011-08-10 Thread Gyuri Dorko
You have to call execute_transform with parse_metadata=True. App Engine will document the feature soon. I understand you are very much interested in trying it out, so you can just use the docstring from the SDK api/images/__init__.py to understand what is the return value of

Re: [google-appengine] get_original_metadata working?

2011-08-10 Thread Ed Estes
Got it. Now when I execute: orgImg = images.Image(image_data) orgImg.rotate(0) orgImg.execute_transforms(parse_source_metadata=True) self.response.out.write(orgImg.get_original_metadata()) I do get a larger subset of EXIF data from my app when it's running on GAE server! Martin, I don't know

Re: [google-appengine] get_original_metadata working?

2011-08-10 Thread Gyuri Dorko
I have just checked with an image with GPS info and I correctly got back the EXIF. The lat/long info are in the dictionary with keys GPSLatitude and GPSLongitude. If this doesn't work for you, please send a link to the image in question and I can look into. In general it should work with images

Re: [google-appengine] get_original_metadata working?

2011-08-10 Thread Ed Estes
Gyuri, You are absolutely correct. I made a bad assumption based on Martin's statement about *still have not successfully lat/long exif data out of JPG's *and my own initial results. The production photos I was looking at the results from *get_original_metadata* calls ironically enough

Re: [google-appengine] get_original_metadata working?

2011-08-09 Thread Ed Estes
Any updates on this? With App Engine 1.5.3 Pre-releasehttps://groups.google.com/forum/#!topic/google-appengine/gi8F8lWzRJUbeing announced, I was hoping someone would acknowledge *get_original_metadata* was broken and was being addressed in the next release. --Ed -- You received this

Re: [google-appengine] get_original_metadata working?

2011-08-09 Thread Martin Ceperley
Hi Ed, I've been discussing this with Jose, and have made a little progress but still have not successfully lat/long exif data out of JPG's. He told me that in order to get a value other than None, execute_transforms() must be called on the image object. So, if you have no transformations, you

Re: [google-appengine] get_original_metadata working?

2011-08-09 Thread Ed Estes
Thanks for the pointer Martin. By adding the lines of code before calling * get_original_metadata*: orgImg.rotate(0) orgImg.execute_transforms() orgImg.get_original_metadata() I am able to get the following data EXIF data now: {u'ImageLength': 480, u'ImageWidth': 640} but that really doesn't

Re: [google-appengine] get_original_metadata working?

2011-07-25 Thread Martin Ceperley
Hi Ed, I looked at the source and it is just an instance method of the images.Image class, called with no parameters, i.e. image.get_original_metadata() I'm stilling getting None from the method, I have tried it both by instantiating an Image from a blob_key and directly with image data, in

Re: [google-appengine] get_original_metadata working?

2011-07-25 Thread Ed Estes
Thanks for confirming this. I was calling it the same way (similar to the *histogram *method) but since I wasn't seeing any data (it was also returning *None*), I thought I was not calling *get_original_metadata* properly. I was using some of the sample photos found over on