<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
We're trying to create NITFs with lossless compression using the OpenJPEG driver for JPEG2000 compression.<br>
<br>
We've set the "QUALITY=100" creation option but are still noticing that repeated conversions generate different perceptual image hashes.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
The OpenJPEG driver mentions "REVERSIBLE=YES" but that doesn't seem to be a valid creation option for the NITF driver.<br>
<br>
Sample gdal_translate command:<br>
"gdal_translate -of NITF -co IC=C8 -co BLOCKXSIZE=256 -co BLOCKYSIZE=256 -co SDE_TRE=YES -co QUALITY=100 sample.tif reversible.nitf"<br>
<br>
Am I going about this the right way?<br>
</div>
</body>
</html>