mirror of
https://invent.kde.org/frameworks/kimageformats.git
synced 2025-07-18 20:04:16 -04:00
TGA: added options support
- Added Size and Format options support - Fixed a double image allocation when reading RGBA images (RGB was always allocated and then replaced by RGBA one) - Fixed the code for sequential devices The Size option is used by the KIO 5 thumbnailer to avoid to use too memory. A backport to KF5 would serve CCBUG: 413801 and CCBUG: 479612
This commit is contained in:
committed by
Albert Astals Cid
parent
0710bc65f6
commit
8e5951471d
@ -19,6 +19,9 @@ public:
|
||||
bool read(QImage *image) override;
|
||||
bool write(const QImage &image) override;
|
||||
|
||||
bool supportsOption(QImageIOHandler::ImageOption option) const override;
|
||||
QVariant option(QImageIOHandler::ImageOption option) const override;
|
||||
|
||||
static bool canRead(QIODevice *device);
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user