spillerrec / imgviewer

Customizable image viewer with minimalistic interface
2 stars 1 forks source link

Show thumbnail while loading file #36

Open spillerrec opened 9 years ago

spillerrec commented 9 years ago

Instead of showing "Loading" text, if the image contains a thumbnail, display that instead.

spillerrec commented 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...

spillerrec commented 8 years ago

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...

spillerrec commented 8 years ago

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...