Skip to main content
Question

Convert from GeoTIFF to ECW while preserving colors


harmen
Contributor
Forum|alt.badge.img+9

When I convert a GeoTIFF to ECW, the bright colors of the GeoTIFF are not preserved in the ECW output. Is that possible anyway, to convert it and preserve 100% of the right colors?

 

Searching the knowledgebase, I have found some directions to a solution: How to preserve exact colors in raster conversion .ecw to .tiff? (safe.com)

 

But in the end, how could it be done? Does someone has experience with it?

 

Find examples below of the original GeoTIFF and the ECW output.

  • the faded example is the ECW file
  • the bright colored example is the GeoTIFF file

3 replies

redgeographics
Celebrity
Forum|alt.badge.img+50

Can you check the GeoTIFF and see if it's e.g. RGBA instead of RGB, or 64 bits instead of 32?


harmen
Contributor
Forum|alt.badge.img+9
  • Author
  • Contributor
  • April 1, 2022
redgeographics wrote:

Can you check the GeoTIFF and see if it's e.g. RGBA instead of RGB, or 64 bits instead of 32?

Thanks Hans (@Hans van der Maarel​ ) for your quick reply.

 

With the RasterPropertyExtractor, I found that it's a RGB GeoTIFF.

The bands are: RED8, GREEN8, BLUE8

And, it's a 24 bits image

 

Using the RasterInterpretationCoercer, setting the raster to a RGBA (32bits), doesn't change anything for the writer.


danminneyatsaf
Safer
Forum|alt.badge.img+12

Hi @Harmen Kampinga​ I've tested this with my own dataset to no avail. It likely has something to do with the bands / type of Raster as mentioned already. If you're okay with sharing your dataset here that would be helpful to solve this. You could also upload it to our Safe Support FTP if you want to keep things confidential.

 

Additionally, we have a great article called How to Convert GeoTIFF to ECW. Let me know if that helps!


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings