Forum

Author Topic: Orthomosaic + JPG compression fails if Save Alpha Channel selected.  (Read 5427 times)

Costas

  • Jr. Member
  • **
  • Posts: 70
  • Aerial Mapping
    • View Profile
I updated Metashape from 2.1.0 to v.2.1.1 and processed a small project.

When i try to export the Orthomosaic in .tiff format with .jpg compression and Save Alpha Channel selected it fails.

Is this a bug? Did something changed in the latest version?
With all previous versions exporting geotiff + jpg compression + Save Alpha Channel worked fine.

The error i get in the console is:
Quote
2024-04-04 11:06:26 Saving project...
2024-04-04 11:06:26 saved project in 0.021 sec
2024-04-04 11:06:26 Finished processing in 0.021 sec (exit code 1)
2024-04-04 11:07:12 ExportOrthomosaic: path = E:/01. Active Projects/01. ANAX Projects/03. TOPOGRAFIKA/Tzoumelekas - (Drosia)/- Deliverables/Orthophoto - tif/Tzoumeleka.tif, image_format = TIFF, projection = GGRS87 / Greek Grid, resolution_x = 0.02, resolution_y = 0.02, save_world = on, white_background = off
2024-04-04 11:07:12 Exporting orthomosaic...
2024-04-04 11:07:12 generating 14794 x 18116 raster in 1 x 1 tiles
2024-04-04 11:07:12 libtiff error: Bogus input colorspace
2024-04-04 11:07:12 Finished processing in 0.399 sec (exit code 0)
2024-04-04 11:07:12 Error: TIFFWriteTile: unexpected error: E:/01. Active Projects/01. ANAX Projects/03. TOPOGRAFIKA/Tzoumelekas - (Drosia)/- Deliverables/Orthophoto - tif/Tzoumeleka.tif

tim12p

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: Orthomosaic + JPG compression fails if Save Alpha Channel selected.
« Reply #1 on: April 08, 2024, 07:27:52 AM »
I get that error too.  Same issue after upgrading and i'm using a Mac.  So it seems it's not an issue with any particular OS.

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 15138
    • View Profile
Re: Orthomosaic + JPG compression fails if Save Alpha Channel selected.
« Reply #2 on: April 08, 2024, 11:22:47 AM »
Thank you for reporting!

We are already working on fix.
Best regards,
Alexey Pasumansky,
Agisoft LLC

wgreenePIMS

  • Newbie
  • *
  • Posts: 13
    • View Profile
JPEG-compressed TIFF exports with alpha channel fails
« Reply #3 on: June 05, 2024, 01:17:55 AM »
I've noticed that in the latest release, I get a libtiff error when attempting to export a GeoTiff using JPEG compression with alpha channel selected. This never used to happen! Here is the error message:

2024-06-04 15:01:43 ExportOrthomosaic: path = /Volumes/PIMS03/SimmsPt/outputs/SimmsPt_20220124.tif, image_format = TIFF, projection = WGS 84 + EGM96 height, resolution_x = 4.9532900000000004e-09, resolution_y = 4.5137299999999999e-09, clip_to_boundary = off, asset = 0
2024-06-04 15:01:43 Exporting orthomosaic...
2024-06-04 15:01:43 generating 52463 x 53822 raster in 1 x 1 tiles
2024-06-04 15:01:44 libtiff error: Bogus input colorspace
2024-06-04 15:01:44 Finished processing in 0.956797 sec (exit code 0)
2024-06-04 15:01:44 Error: TIFFWriteTile: unexpected error: /Volumes/PIMS03/SimmsPt/outputs/SimmsPt_20220124.tif


wgreenePIMS

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: Orthomosaic + JPG compression fails if Save Alpha Channel selected.
« Reply #5 on: June 10, 2024, 08:59:21 PM »
Excellent, thanks Alexey!