I want to embed a compressed image in a notebook so that only an icon is visible (and not the whole image).
The following procedure seems to work :
ExampleData[{"TestImage", "Lena"}] // ExportString[#, "JPG"] & //
Iconize[#, "lena 00 compressed"] &
One can copy-paste the icon above in the following code and evaluate it.
Then the image is retrieved.
ImportString["paste the icon here","JPG"]
The problem
If I quit, reopen and evaluate only the cell with ImportString[...
, it doesn't work anymore.
Any solution/workaround for this problem ?
Notes :
My real aim is to embed a video as a list of 200 compressed images under a simple icon. The compression is necessary because of this problem. Morever, I need to retrieve a list of independently compressed images in order to
Manipulate[]
them with good reactivity (forward and backward. The decompression, which is quick, is made on the fly)I have tried without success to replace
Iconize[...]
by some code withInterpretation[...]
.
Mathematica 11.3 Windows 7 (64bits)