The code that handles the conversion of orthomosaics and DEMs from TIFF to PNG and the PNG thumbnail creation is currently (relatively) brittle, it uses different code paths for RGB and Micasense images, and it breaks on really big GeoTIFFS.
Image thumbnail creation could use the code at https://stackoverflow.com/q/50465366 (gdal_translate -of PNG -outsize 512 512 odm_orthophoto.tif uuid_thumbnail.png, place the thumbnail on the tmp folder)
The code that handles the conversion of orthomosaics and DEMs from TIFF to PNG and the PNG thumbnail creation is currently (relatively) brittle, it uses different code paths for RGB and Micasense images, and it breaks on really big GeoTIFFS.
gdal_translate -of PNG -outsize 512 512 odm_orthophoto.tif uuid_thumbnail.png
, place the thumbnail on thetmp
folder)Any changes must be tested on:
The results to test are:
tmp
folder where the frontend code can reach it.rgb.tif
must have been created and must load correctly into Geoserver (check the bands and transparency)