Maybe a little late, but I needed the same exact thing and I found that if you just do a transformation with the same width and height, it will basically do an "empty" transformation that fixes the orientation.
//image is a byte[] Image imageObject = ImagesServiceFactory.*makeImage*(image); ImagesService imagesService = ImagesServiceFactory.*getImagesService*(); Transform resize = ImagesServiceFactory.*makeResize* (imageObject.getWidth(),imageObject.getHeight()); InputSettings is = *new *InputSettings(); is.setOrientationCorrection(OrientationCorrection.*CORRECT_ORIENTATION*); Image newImage = imagesService.applyTransform(resize, imageObject,is,*new * OutputSettings(OutputEncoding.*PNG*)); On Friday, August 17, 2012 6:43:13 AM UTC-4, John Gentilin wrote: > > Is there a way to correct just the Image Orientation ? > > Since the image orientation correction is specified in the InputSettings, > how can you specify an empty transformation ? This is for a Java backend. > > Thank you > John Gentilin > -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/S3_5B_eNgdgJ. 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.
