Problem with image sizes
Posted: Tue Mar 12, 2024 8:22 am
Good afternoon.
I use TRichView FMX 22.2 and C++Builder 12.
I insert pictures *.png/*.jpg/*.webp
I insert the image like this:
I am exporting to html
Images are saved separately from HTML.
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
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