[Gambas-user] How can I flush the image cache?

M. Cs. mohareve at ...626...
Mon Apr 16 12:36:27 CEST 2012


There you are!
It requires Imagemagick to be installed.
There are possible downsides of the Picture.Load(mypicture):
- If the image mypicture is broken or 0 sized, the program will fail
to load, and crash.
- The 'convert' of Imagemagick sometimes creates broken thumbnails, so
I had to build in a size check with Stat(mypicture).Size.

Csaba
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ImageFlush-0.0.1.tar.gz
Type: application/x-gzip
Size: 7141 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20120416/71475d92/attachment.bin>


More information about the User mailing list