Hi, i have a question,
In MiniBrowser there is a "Download Image" example and it works fine, except one thing: it changes the original image.
For example the original file was in jpg, but in this example we do "image.GetAsPng" and the saved file will be:
1. Recompressed (because we take a bitmap from ICefImage and compress it in Png)
2. Saved in the wrong format
Result: size and quality of the image are wrong, sometimes critically.
Is there an option to do real "save as" or real "download" without such damage?
Thank you
Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.
Download an Image without PNG conversion
- salvadordf
- Posts: 4580
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Re: Download an Image without PNG conversion
Hi,
Try getting the image URL and then calling TChromium.StartDownload.
That will initiate a regular file download which will trigger the usual download events in TChromium : OnCanDownload, OnBeforeDownload and OnDownloadUpdated.
The MiniBrowser demo also has an example of those download events.
Try getting the image URL and then calling TChromium.StartDownload.
That will initiate a regular file download which will trigger the usual download events in TChromium : OnCanDownload, OnBeforeDownload and OnDownloadUpdated.
The MiniBrowser demo also has an example of those download events.
Re: Download an Image without PNG conversion
thank you it is the game changer 
