Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Manipulate buffer on the pixel level but let the rest of the image untouched #1452
My uncompressed input TIFF has 3 channels a 16 bits and important metadata and profile. I want to access and change some pixels by their raw values and then save the resulting image in the same format, size and with the same metadata:
Result: The image is saved as 8 bit TIFF with JPEG compression, and the metadata is missing.