Results 1 to 16 of 16

Thread: Loading corrupt jpeg images with QImage

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,373
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    3
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: Loading corrupt jpeg images with QImage

    You can report it of course it would be worth to check first if libjpeg has any means of notifying about such corruption. If not, Trolls won't be able to do anything about it other than patching libjpeg which is doubtful they would do.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  2. #2
    Join Date
    Apr 2009
    Posts
    9
    Qt products
    Qt4
    Platforms
    MacOS X
    Thanks
    2

    Default Re: Loading corrupt jpeg images with QImage

    Thanks for your help!

    I reported the problem in the Qt tasktracker.

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,373
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    3
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: Loading corrupt jpeg images with QImage

    Did you check if libjpeg is able to report such errors?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  4. #4
    Join Date
    Apr 2009
    Posts
    9
    Qt products
    Qt4
    Platforms
    MacOS X
    Thanks
    2

    Default Re: Loading corrupt jpeg images with QImage

    libjpeg provides very detailed status codes, see http://libjpeg.cvs.sourceforge.net/v....h?view=markup. However, qjpeghandler.cpp does not seem to check them. The corresponding function is
    Qt Code:
    1. static bool read_jpeg_image(QIODevice *device, QImage *outImage, const QByteArray &parameters, QSize scaledSize, int inQuality )
    To copy to clipboard, switch view to plain text mode 

    Also, it seems that the interface provided by QImageIOHandler would need to be extended to be able to forward additional "status messages" since currently the read() and canRead() methods only return boolean values.

  5. #5
    Join Date
    Feb 2009
    Location
    Noida, India
    Posts
    517
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    21
    Thanked 66 Times in 62 Posts

    Default Re: Loading corrupt jpeg images with QImage

    i always wanted to find a proper bug in Qt..it always seemed so perfect and foolproof..and here we are..good work miky

  6. #6
    Join Date
    Apr 2009
    Posts
    9
    Qt products
    Qt4
    Platforms
    MacOS X
    Thanks
    2

    Default Re: Loading corrupt jpeg images with QImage

    The problem discussed can now be found in the tasktracker:
    http://www.qtsoftware.com/developer/...ntry&id=251514

  7. #7
    Join Date
    Dec 2010
    Posts
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Loading corrupt jpeg images with QImage

    I'm facing the same issue, and no solutions has been reported on the Bug Tracker.
    How did you solve it? Have you found a way to detect the corrupted images?
    Thanks

Similar Threads

  1. WekKit won't load JPEG images.
    By andrem in forum Qt Programming
    Replies: 4
    Last Post: 10th December 2008, 00:24
  2. Problem with displaying jpeg and gif images, in QT4
    By node_ex in forum Installation and Deployment
    Replies: 1
    Last Post: 23rd September 2008, 15:29
  3. QImage not loading successively.
    By node_ex in forum Qt Programming
    Replies: 3
    Last Post: 26th July 2008, 13:20
  4. JPEG Images not shown in QiconView using QT3??
    By darpan in forum Qt Programming
    Replies: 1
    Last Post: 4th August 2006, 20:34

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.