Page 1 of 1

imageCacheSize property

Posted: Thu May 02, 2019 5:43 am
by capellan
Hi All,

Does anyone knows where is the documentation for the
property imageCacheSize?

The imageCacheSize property is mentioned by Ian MacPhail in
this bug report: https://quality.livecode.com/show_bug.cgi?id=15449

Ian MacPhail wrote:
the imagedata for both images exceeding the default maximum size of the image data cache.

the GIF images on your stack have a considerable number of frames, 139 for the 368x524 image, 446 for the 640x359 image. When a GIF image is loaded into the cache, the bitmap data for all frames is loaded in at once. This works out to 102.2MB and 390.9MB respectively, taking the cache size way over the default limit of 256MB.

You can work around this by raising the imageCacheSize property to allow for this much data.

Alternatively, you can reduce the cache space used by displaying a snapshot of the GIF images showing only the first frame, hiding the GIFs until required.
Thanks in Advance!

Al

Re: imageCacheSize property

Posted: Thu May 02, 2019 8:36 am
by FourthWorld

Re: imageCacheSize property

Posted: Thu May 02, 2019 9:09 am
by LCMark
@capellan: Also it is in the docs in the IDE* under the 'imageCacheLimit' and 'imageCacheUsage' properties (from whence said wiki page is derived) :)

* I checked in version 9.0.x

Re: imageCacheSize property

Posted: Thu May 02, 2019 8:09 pm
by capellan
Many Thanks! :D I have looked for this term and
do not found it, so after an empty google's search,
I asked this forum.

Strangely enough, yesterday google's results for
"imageCacheSize Livecode" were empty
but today, the first result is:
https://livecode.fandom.com/wiki/ImageCacheUsage
and the third result is:
newsletters.livecode.com/april/issue151/newsletter2.php

Al