001888: Pyramids were not built properly.

Description

JPEG compression only supports values up to 12 bits. Possible clipping of higher values is expected.

Solution

Choose a compression method that supports 16-bit data, such as JPEG 2000 or LERC.