Problem to use ScaleImage

Hi,

I am using the add-on: ScaleImage to show images. The images were shown well when setting ThemeResources, but nothing was there when setting ExternalResource using url like “data:image/png;base64,…”. I would like to use this mechanism to show images dynamically. Please kindly advise how to achieve that.

Best regards,
Joey

Thanks a lot. It saves my time.

Joey

I would recommend to use StreamResource, not Base64 image URL.

See example: https://github.com/alump/ScaleImage/commit/0123558f9d1927e0d33f3fc5af0d462586a2b34d

As long as you can provide the image via stream you should be able to use this. So image data can be from classpath, in filesystem, in network or just in memory.