Importing TIFF files

Updated 1 week ago by Manu Sharma

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. We have built a cloud function that dynamically converts your TIFF files so that it works with Labelbox image editors.

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 import file, simply add this prefix:  https://us-central1-labelbox-193903.cloudfunctions.net/tiff-converter?tiff_url=YOUR_IMAGE_URL before each url. Below is an example of JSON with .TIFF URLs:

[
{"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"}
]


How did we do?