Could it be related to this issue:

https://code.google.com/p/googleappengine/issues/detail?id=8304


PK
http://www.gae123.com

On April 10, 2014 at 7:20:40 AM, Alejandro Gonzalez 
([email protected]) wrote:


Hello,

Im making some tests with the ImageService (in java) and the EXIF info for 
images. My problem is that when i use the ImageService to transform images 
(crop+resize) the EXIF info for the image is used, and therefor the image gets 
rotated acording to his EXIF information.

Im uploading the image from an iPad, and i cant figure out how to ignore this 
EXIF rotation info when using the ImageService.applyTransform

I could't find any documentation but the javadoc of the OrientationCorrection 
in 
https://developers.google.com/appengine/docs/java/javadoc/com/google/appengine/api/images/InputSettings.OrientationCorrection

However, this is not solving my problem as seems to do nothing and the image 
keeps rotating when i try to resize it. This is the code:



                CompositeTransform cp = 
ImagesServiceFactory.makeCompositeTransform();
                cp.concatenate(ImagesServiceFactory.makeCrop(p_leftX, p_topY, 
p_rightX, p_bottomY));
                cp.concatenate(ImagesServiceFactory.makeResize(500, 500));
                
                InputSettings is = new InputSettings();
                
is.setOrientationCorrection(InputSettings.OrientationCorrection.UNCHANGED_ORIENTATION);
                
                OutputSettings os = new 
OutputSettings(ImagesService.OutputEncoding.PNG);
                
                LOGGER.info("TRANSFORM IMAGE IGNORING EXIF");
                
                image = imagesService.applyTransform(cp, image, is, os);

Does anyone has a clue about how to ignore the EXIF info for an image when 
transforming it with the imageService? Does anyone know if the 
OrientationCorrection flag is working properly?

This is documented for phyton 
(https://developers.google.com/appengine/docs/python/images/functions) , but 
not for java (just JavaDoc)

Thanks in advance!
--
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.

Reply via email to