Downscale image automatically

This commit is contained in:
hunbernd 2017-06-08 23:00:33 +02:00
parent f50351063d
commit 9af2730879
3 changed files with 88 additions and 42 deletions

View file

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