[Interest] Camera cature ios roated 90 ccw (5.4.1)

Gianluca gmaxera at gmail.com
Tue Jun 16 19:59:12 CEST 2015


Hello,
attached there is the code I used for rotating the image.
It comes from a commercial project, so I removed all parts cannot share.

The method that did the trick is scaleAndRotateImage, the rest of the code is for selecting an image or for taking an image using native iOS controllers instead of Qt provided ones.

I’m sorry but this code needs that you know objective-C, iOS SDK and how to integrate them into a Qt app.

Ciao,
Gianluca.



Il giorno 16/giu/2015, alle ore 18:49, Jason H <jhihn at gmx.com> ha scritto:

> Thanks that would be awesome, I don't know any Obj-C!
>  
>  
> Sent: Tuesday, June 16, 2015 at 11:28 AM
> From: "Gian Maxera" <gmaxera at gmail.com>
> To: "Daniel França" <daniel.franca at gmail.com>
> Cc: "Jason H" <jhihn at gmx.com>, "interest at qt-project.org" <interest at qt-project.org>
> Subject: Re: [Interest] Camera cature ios roated 90 ccw (5.4.1)
> I got the same problem on iOS when I capture an image.
> The problem arise on iOS because iOS do not rotate the image but it store into EXIF metadata how it should be rotated and orientated the image for visualising it.
> But the Image item of QML (in my case) ignore the EXIF metadata for orientation and hence you see the image rotated.
> My trick was to rotate the image using iOS api.
> I’m sorry, I don’t have the code here. Later during the code I’ll send you my function for doing that.
>  
> Ciao,
> Gianluca.
>  
>  
> On 16 Jun 2015, at 16:22, Daniel França <daniel.franca at gmail.com> wrote:
>  
> Not sure if it's related, but the autoOrientation for VideoOutput didn't work well for me either.
> I'm waiting for the 5.5 release as I'd other problems with video capture on IOS to test it again.
>  
>  
> Em ter, 16 de jun de 2015 às 17:22, Daniel França <daniel.franca at gmail.com> escreveu:
> Not sure if it's related, but the autoOrientation for VideoOutput didn't work well for me either.
>  
> Em ter, 16 de jun de 2015 às 16:29, Jason H <jhihn at gmx.com> escreveu:
> I have a mobile app on iOS and Android. We're new to iOS. Out android app is flawless (provided we don't use 5.4.2 >:(
> 
> When capturing a image, we capture the preview image, we then display this image in an image element. In android with autoOrientation: true it works fine. In iOS the image is rotated 90 CCW.
> 
> Has anyone else seen this?
> Is there a resolution?  (I did google.)
> 
> This reminds me of the bug that 5.4.1 fixed in android (and allegedly all others), but was reverted for 5.4.2.
> 
> I'm wondering if it is related to: http://stackoverflow.com/questions/29724537/realtime-capture-using-avfoundation-rotated-90%C2%BA-in-avcapturevideopreviewlayer
> 
> Help?
> Thanks.
> 
> 
> 
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20150616/a5009c93/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: backend_ios.mm
Type: application/octet-stream
Size: 6781 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20150616/a5009c93/attachment.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20150616/a5009c93/attachment-0001.html>


More information about the Interest mailing list