I use TRichView FMX 22.2 and C++Builder 12.
I insert pictures *.png/*.jpg/*.webp
I insert the image like this:
Code: Select all
TRVGraphicFM* Graphic;
OpenDialog->Filter = "Images|*.bmp;*.jpg;*.jpeg;*.png;*.gif;*.tif;*.tiff;*.ico;*.webp";
if (OpenDialog->Execute()) {
Graphic = RVGraphicHandler->LoadFromFile(OpenDialog->FileName);
if (Graphic != NULL) {
ActiveEditor->InsertPicture("", Graphic, rvvaAbsMiddle);
}
}
Code: Select all
rve->SaveHTMLToStream(HtmlText, FolderToExport + "\\", rvhtmlspMiddle);
File sizes increase greatly. The size of png/jpg increases +- 2 times. But webp from 84k increased to 700k.
The image sizes were not changed.
I re-read the certificate and nothing is written about quality.
How to save images in original quality as is?
Thanks in advance for your help