Open spillerrec opened 9 years ago
Oh, QImageReader doesn't even support thumbnails, that's probably why I haven't added it yet... It is as crappy as ever...
Since we have our custom ReaderJpeg now, it should be possible to extract the thumbnail which is located in marker JPEG_APP0. However it does not appear to be easily reachable however, and one of the files suggest it is actually in the EXIF data...
ReaderJpeg currently reads meta-data after the image has finished decoding, which doesn't help getting the thumbnail. Some files looked like it had extra application segments after the image data, but it might not affect icc_profile and exif data, so I have to check that first.
I added thumbnail as a public field in imageCache, but thinking about it we would need to emit a signal to tell a thumbnail now is available. That has to be fixed...
Instead of showing "Loading" text, if the image contains a thumbnail, display that instead.