Importing TIFF files

Manu Sharma Updated by Manu Sharma

The Labelbox application does not have a native capability for labeling TIFF files. However, if you would like to upload a TIFF file that you have hosted somewhere, you can use our cloud function to dynamically convert files in TIFF format to PNG format. Files converted this way will work with the Editor.

That being said, TIFF files are usually not supported by the browser and in many cases you might prefer to keep your data pipeline simple by not converting TIFF files to PNG or JPG.

Cloud function that converts TIFF to PNG in realtime:

"https://us-central1-labelbox-193903.cloudfunctions.net/tiff-converter?tiff_url=YOUR_IMAGE_URL"

While creating JSON file to import your TIFF files, simply add the prefix https://us-central1-labelbox-193903.cloudfunctions.net/tiff-converter?tiff_url= before each of your URLs.

JSON example

[
{"imageUrl": "https://us-central1-labelbox-193903.cloudfunctions.net/tiff-converter?tiff_url=https://storage.googleapis.com/labelbox-public-bucket/out1.tiff"},
{"imageUrl": "https://us-central1-labelbox-193903.cloudfunctions.net/tiff-converter?tiff_url=https://storage.googleapis.com/labelbox-public-bucket/out2.tiff"},
{"imageUrl": "https://us-central1-labelbox-193903.cloudfunctions.net/tiff-converter?tiff_url=https://storage.googleapis.com/labelbox-public-bucket/out3.tiff"}
]

Was this page helpful?

Asset metadata via JSON

Contact