[Qt-qml] QML Image Decoding Error

Ben Marinic ben at combinationstudios.com
Tue Aug 10 00:06:19 CEST 2010


I think I can see the issue.  The JPG file may actually be a PNG but  
it's incorrectly named.  Will check this.


On 9 Aug 2010, at 23:03, Ben Marinic wrote:

> Hi
>
> I have a Flex app which export some images (PNGs and JPGs).  The  
> exported images open fine in Preview, Safari, Photoshop, Flash, etc  
> etc.  But these same images won't load in my QML application.  When  
> trying to load one I get the following:
>
> Starting /Applications/Qt Creator.app/Contents/MacOS/QMLViewer / 
> Users/benmarinic/Desktop/qml29/start.qml
> Not a JPEG file: starts with 0x89 0x50
> file:///Users/benmarinic/Desktop/qml29/4CF8ED62-5B5F-ABFD-5E47-58D502C3AC7D.qml:8:4 
> : QML Image: Error decoding: file:///Users/benmarinic/Desktop/qml29/symbian.jpg 
> : Unable to read image data
>
> If I then open symbian.jpg in Preview (Mac OSX) and then re-save it  
> out again - the newly created file loads in my QML.
>
> Am I missing something here?  Why the these file headers throwing  
> QML off?
>
> Thanks
>
> Ben
>
> Ben Marinic
> Combination Studios Ltd
> e. ben at combinationstudios.com
> t. +44 (0)20 7193 2000
> m. +44 (0)7813 147 159
>
>
>
>
>

Ben Marinic
Combination Studios Ltd
e. ben at combinationstudios.com
t. +44 (0)20 7193 2000
m. +44 (0)7813 147 159





-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt.nokia.com/pipermail/qt-qml/attachments/20100809/e90f940c/attachment.html 


More information about the Qt-qml mailing list