I’m playing with an
HtmlDialog content browser in SketchUp which extracts the thumbnail images from
.style files using RubyZip, then adds them to the dialog to allow users to select them.
What’s the best way to handle the images? Should I try to cache the thumbnails on disk so as not to have to extract them every time the user browses the materials? Or maybe base64 encode the image directly from the UnzipStream and add the encoded string to a data URI in an
img tag? Something else?