Width and Height of image too large
Posted: Wed Jun 09, 2021 1:01 pm
Hi Salvador,
we use chromium/cef4d to display HTML emails. We never had problems with this.
But now we got a customer email. The special is an referred image "Mockup Raumtrenner.png" whose width x height is 11220 x 11220.
<img apple-inline="yes" id="5311BFB4-D5CF-429E-9499-1A03E37A878F" src=".\.\Mockup Raumtrenner.png" class="">
Chromium starts loading the HTML file but it stays blank. No OnLoadEnd event is fired. No error appears.
The image file is about 10 MB big, but this is not the problem.
If I downscale the PNG with "Microsoft Photos" to 4000 x 4000 then the browser loads correctly an the PNG-image is shown.
The process of downscales results in a file size about 12 MB. This means it became larger, nevertheless then everything is ok.
Seems that only the large width and height prevent chromium from loading but not he large file size.
IMAGE_FILE_LARGE_ADDRESS_AWARE is already set.
I activated the logging of Chromium and attached two files:
chromium_err.txt -> original image 11220 x 11220, file size 10 MB
chromium_ok.txt -> downscaled image 4000 x 4000, file size 12 MB
Maybe you can see anything in the logfiles.
if neccessary I will ask the customer for publishing his email and add it here.
Thanks in advance
Reinhard
we use chromium/cef4d to display HTML emails. We never had problems with this.
But now we got a customer email. The special is an referred image "Mockup Raumtrenner.png" whose width x height is 11220 x 11220.
<img apple-inline="yes" id="5311BFB4-D5CF-429E-9499-1A03E37A878F" src=".\.\Mockup Raumtrenner.png" class="">
Chromium starts loading the HTML file but it stays blank. No OnLoadEnd event is fired. No error appears.
The image file is about 10 MB big, but this is not the problem.
If I downscale the PNG with "Microsoft Photos" to 4000 x 4000 then the browser loads correctly an the PNG-image is shown.
The process of downscales results in a file size about 12 MB. This means it became larger, nevertheless then everything is ok.
Seems that only the large width and height prevent chromium from loading but not he large file size.
IMAGE_FILE_LARGE_ADDRESS_AWARE is already set.
I activated the logging of Chromium and attached two files:
chromium_err.txt -> original image 11220 x 11220, file size 10 MB
chromium_ok.txt -> downscaled image 4000 x 4000, file size 12 MB
Maybe you can see anything in the logfiles.
if neccessary I will ask the customer for publishing his email and add it here.
Thanks in advance
Reinhard