mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-12 08:10:46 -04:00
Downscale image automatically
This commit is contained in:
parent
f50351063d
commit
9af2730879
3 changed files with 88 additions and 42 deletions
|
@ -10,6 +10,10 @@ public:
|
|||
ImageUtil();
|
||||
|
||||
static void extractImage(QWidget *window, QTextCursor cursor);
|
||||
static void optimizeSize(QString &html, const QImage& original, QImage &optimized, int maxPixels = -1, int maxBytes = -1);
|
||||
|
||||
private:
|
||||
static bool checkSize(QString& embeddedImage, const QImage& img, int maxBytes = -1);
|
||||
};
|
||||
|
||||
#endif // IMAGEUTIL_H
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue