gristlabs / grist-core

Grist is the evolution of spreadsheets.
https://www.getgrist.com/
Apache License 2.0
6.97k stars 308 forks source link

Show images from URLs in table widgets #1158

Open benedictleejh opened 1 month ago

benedictleejh commented 1 month ago

Describe the problem to be solved

Google Sheets and Excel allow for inserting image into cells with the IMAGE formula. This can quickly help with previewing linked images.

Currently, the only way to view an image from a URL in Grist is to use the Image Viewer widget, which can only view 1 image at a time, so it becomes cumbersome to view all images from a table, especially if there are a lot of table rows.

Describe the solution you would like

Display images from URLs directly inside the table widget.

dsagal commented 1 month ago

Possibly related is this more general proposal for formatting in cells: https://github.com/gristlabs/grist-core/issues/1161. That proposal does not include images initially, but if allowed, then an IMAGE(url) formula could be implemented as simply returning suitable markdown, and if the column is set to render with formatting enabled, it would show the image.