How to get the dpi of an image(Java)

后端 未结 7 1885
无人及你
无人及你 2021-01-06 01:51

In c#, we can use Image.HorizontalResolution and Image.VerticalResolution.

But in java, how to get it?

I found ImageInfo.java, but it only supp

相关标签:
7条回答
  • 2021-01-06 02:13

    ImageMagick is a powerful tool for all image related work. IM needs to be installed and requires some configuration for the environment but it's worth the trouble.

    http://www.imagemagick.org

    I recommend you use JMagick wit IM:

    http://www.jmagick.org

    I won't explain the details on how to since it is documented in urls given.

    0 讨论(0)
提交回复
热议问题