You can convert the image to 8-bit shades of gray using ColorConvertOp with BufferedImage.TYPE_BYTE_GRAY as the filter() destination. Here is an example .
RAW is actually a family of image formats defined by the manufacturer, many of which can be read using jrawio . After the conversion, you can write ExifTool .
source share