Opened 13 years ago
Closed 13 years ago
#4096 closed defect (fixed)
Writing tiled YCBCR JPEG Compressed TIFFs produces anomolies on right and bottom
Reported by: | warmerdam | Owned by: | warmerdam |
---|---|---|---|
Priority: | normal | Milestone: | 1.8.1 |
Component: | GDAL_Raster | Version: | unspecified |
Severity: | normal | Keywords: | GTiff |
Cc: |
Description
Given a command like:
gdal_translate -of GTiff -ot Byte -co "TILED=YES" -co "PROFILE=GeoTIFF" -co "COMPRESS=JPEG" -co "JPEG_QUALITY=85" -co "PHOTOMETRIC=YCBCR" HS_1.tif out.tif
The resulting GeoTIFF file will have odd darkening on the right and bottom column and row of pixels. This appears to be some sort of effect from the undefined pixel values used to fill out the 256x256 tile - likely all zeros.
Attachments (2)
Change History (5)
by , 13 years ago
comment:1 by , 13 years ago
Milestone: | → 1.9.0 |
---|---|
Status: | new → assigned |
I have implemented preliminary logic to fill out partial edge tiles with the closest imagery from the valid area. This seems to resolve the problems I was seeing. For now in trunk only (r22435).
comment:2 by , 13 years ago
The following tests will need to be adjusted :
Script: gcore/tiff_ovr.py TEST: tiff_ovr_9 ... fail got wrong overview checksum. TEST: tiff_ovr_10 ... fail got wrong overview checksum. TEST: tiff_ovr_43 ... fail did not get expected checksum TEST: tiff_ovr_9: tiff_ovr_9_inverted ... fail got wrong overview checksum. TEST: tiff_ovr_10: tiff_ovr_10_inverted ... fail got wrong overview checksum. TEST: tiff_ovr_43: tiff_ovr_43_inverted ... fail did not get expected checksum Script: gcore/tiff_write.py TEST: tiff_write_13 ... fail Did not get expected checksum on reopened file. Got 17347 instead of 17255.
comment:3 by , 13 years ago
Milestone: | 1.9.0 → 1.8.1 |
---|---|
Resolution: | → fixed |
Status: | assigned → closed |
Backported code change and test script updates back to 1.8 branch (r22439).
Input file (raw data)