Storing DPI and Paper Size information in a JPEG with Java

前端 未结 4 1450
南笙
南笙 2021-01-13 03:13

I have the following code:

ImageIO.write(originalImage, OUTPUT_TYPE, resultOutput);

This is an invocation of the following javax.imag

4条回答
  •  说谎
    说谎 (楼主)
    2021-01-13 03:53

    This question is already partially answered: Write dpi metadata to a jpeg image in Java

    From the image editor GIMP I know that .png has a resolution (DPI) one may save as meta data. There is EXIF data for JPEG, info of the camera in general, including resolution.

提交回复
热议问题