Otherwise the QImageReader sets the format based on the file name suffix, which might be misleading, e.g. a jpeg file named image.png.
CCBUG: 220496
dfaure | |
elvisangelaccio |
Frameworks |
Otherwise the QImageReader sets the format based on the file name suffix, which might be misleading, e.g. a jpeg file named image.png.
CCBUG: 220496
Automatic diff as part of commit; lint not applicable. |
Automatic diff as part of commit; unit tests not applicable. |
I guess this change makes sense (given that we are in the jpeg plugin), but what about QImageReader::decideFormatFromContent() ?
@miklosm, can this go in now, or it is dependent on either of your other two patches?
All three patches need to be in place to fix bug 220496. The thumbnail creators need correct type info to be able to create the thumbnail, and the KIO patch is needed to select the correct thumbnailer. Alternatively, the jpeg thumbnailer could be removed in favor of the generic image thumbnailer.