I am testing file loader by uploading images of different formats. File loader uploading image but not displaying images of .tiff, .dicom, .cr2 and .ima formats.
Clone link:
https://anvil.works/build#clone:LBGBJLLPGFXNKNEP=LPLH7ALFRG5WYCNB233BYPSY
I am testing file loader by uploading images of different formats. File loader uploading image but not displaying images of .tiff, .dicom, .cr2 and .ima formats.
Clone link:
https://anvil.works/build#clone:LBGBJLLPGFXNKNEP=LPLH7ALFRG5WYCNB233BYPSY
What I’m trying to do:
I’m uploading an image using file loader. Then i am trying to display the selected image through a button click.
What I’ve tried and what’s not working:
I tried it on PNG, JPG, JPEG files. It is working perfectly but when i uploaded TIFF image, it didn’t display it. What am i missing here?
Code Sample:
def button_1_click(self, **event_args):
self.image_1.source = self.file_loader_1.file
Clone link:
https://anvil.works/build#clone:5R7NWGTCER4YLSFH=KVEE4BF4YPC5WQ6BUVJZKQE5
Hello folks,
TIFF and other image formats are not supported by most browsers.
Please see this post:
Currently i’m using chrome and firefox. And tiff image did not get display on both of them. So do you mean i will have to use another browser to do this task?
I would suggest not using TIFF as an option. Or, convert the image to another format before displaying.