Is it possible a raster TIFF contains uncompressed compressed data as well?

1326
4
Jump to solution
06-30-2017 03:00 AM
GlibaRoland
New Contributor III

I have got ortophotos approx in size of 1 TB and just noticed that when I export/copy a raster (114MB disk space) with non compression the result size is 72 MB and then made again an export with jpeg 100% quality compression and the result is 42 MB. In addition, I decompressed the 42MB version and I got 72 MB again. It seems to me (72+42=114) the origin file contains both of compressed uncompressed data. But how?

I tried to check multipage but I didn't find anything. Thank you for the help, very much!

0 Kudos
1 Solution

Accepted Solutions
GlibaRoland
New Contributor III

We found the problem. Orthovista tiffs has a fourth band and arcmap ignoring it when its tag is undefined. In this case this extra channel appears as alpha band in the symbology. I happy!

View solution in original post

0 Kudos
4 Replies
GünterDörffel
Occasional Contributor III

If you want good information about what is IN that TIFF-"container" at any point in time, it is very good to have GDAL installed somewhere - and call GDALINFO followed by the Raster-File-Name/Path. Then you get detailed info about all that happens in there.

GDAL is part of ArcGIS and you might find GDALINFO.exe somewhere on your disk. If you installed ANYTHING that uses MDCS (see Esri MDCS at GITHUB) you will find it in the GDAL folder there. 

PeterBecker
Esri Regular Contributor

It looks like you might have uncompressed TIF files with two sets of internal pyramids. It can happen if someone calls GDALaddo on a file twice. It the uncompressed file size is 72MB then the pyramid (which can be internal) would be about 23MB. Best would be to check the content as Guenter suggests.

If you are looking to convert a large collection of files I would suggest you look at OptimizeRasters see https://github.com/Esri/OptimizeRasters   This can be used to rapidly convert imagery into optimal format that is tiled and has pyramids. It also copies accross metadata and includes the above mentioned GDALINFO. You will find it in the Bin directory. At the command line give GDALINFO  filename.tif >filename.txt  Then take a look at the content of the txt file.

GlibaRoland
New Contributor III

Hy!

Thank you for the help

I was on holiday in the last week

I tried the GDAL but I am not closer to the solution. Our tiffs do not contains multi page or inner-pyramids at all.

the gdalinfo result:

Driver: GTiff/GeoTIFF
Files: 45-111_o_1m_2015.tif
45-111_o_1m_2015.tif.aux.xml
Size is 6000, 4000
Coordinate System is:
LOCAL_CS["SOCET-SET LSR Curved",
UNIT["metre",1,
AUTHORITY["EPSG","9001"]]]
Origin = (624000.000000000000000,192000.000000000000000)
Pixel Size = (1.000000000000000,-1.000000000000000)
Metadata:
AREA_OR_POINT=Area
TIFFTAG_DATETIME=2015:12:03 09:11:27
TIFFTAG_IMAGEDESCRIPTION=OrthoVista
TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch)
TIFFTAG_SOFTWARE=Adobe Photoshop CS5.1 Windows
TIFFTAG_XRESOLUTION=72
TIFFTAG_YRESOLUTION=72
Image Structure Metadata:
COMPRESSION=JPEG
INTERLEAVE=PIXEL
Corner Coordinates:
Upper Left ( 624000.000, 192000.000)
Lower Left ( 624000.000, 188000.000)
Upper Right ( 630000.000, 192000.000)
Lower Right ( 630000.000, 188000.000)
Center ( 627000.000, 190000.000)
Band 1 Block=6000x16 Type=Byte, ColorInterp=Red
Min=7.000 Max=253.000
Minimum=7.000, Maximum=253.000, Mean=99.361, StdDev=42.857
Metadata:
STATISTICS_MAXIMUM=253
STATISTICS_MEAN=99.360848791692
STATISTICS_MINIMUM=7
STATISTICS_STDDEV=42.857204370345
Band 2 Block=6000x16 Type=Byte, ColorInterp=Green
Min=14.000 Max=255.000
Minimum=14.000, Maximum=255.000, Mean=121.083, StdDev=34.759
Metadata:
STATISTICS_MAXIMUM=255
STATISTICS_MEAN=121.08314416668
STATISTICS_MINIMUM=14
STATISTICS_STDDEV=34.758552449442
Band 3 Block=6000x16 Type=Byte, ColorInterp=Blue
Min=7.000 Max=255.000
Minimum=7.000, Maximum=255.000, Mean=103.092, StdDev=38.860
Metadata:
STATISTICS_MAXIMUM=255
STATISTICS_MEAN=103.09221020833
STATISTICS_MINIMUM=7
STATISTICS_STDDEV=38.859827548114

Any further idea?

0 Kudos
GlibaRoland
New Contributor III

We found the problem. Orthovista tiffs has a fourth band and arcmap ignoring it when its tag is undefined. In this case this extra channel appears as alpha band in the symbology. I happy!

0 Kudos