Open matt-sd-watson opened 1 year ago
Not sure tif files are supported by browser, chrome don't seem to support it: https://en.wikipedia.org/wiki/Comparison_of_web_browsers#Image_format_support
What does Image.open(
returns ?
As I had hoped to show in the example above, rendering the tif directly through a Pillow Image opener works and shows the image in Chrome:
html.Img(src=Image.open(os.path.join(os.path.dirname(os.path.abspath(__file__)),
"sample.tif")))
However, when trying to access the Image after using dcc.Upload
and uploading the same tif file, it doesn't render. Could this be related to the method by which dash converts the file contents into base64-encoded strings?
Describe your context Please provide us your environment, so we can easily reproduce the issue.
pip list | grep dash
belowhtml.Img(src=Image.open(os.path.join(os.path.dirname(os.path.abspath(file)), "sample.tif")))