Page 1 of 1
Image Density in jp2 format being lost
Posted: 2017-08-30T13:08:27-07:00
by Keith.Vinson
Hi all,
When I save an image in jp2 format the density info seems to get lost.
To test this I looked at the density info before saving the file, the using a MagickImageInfo class I reloaded the outputfile and looked at the density info, it was not populated. Am I missing something?
Thanks,
Keith
Re: Image Density in jp2 format being lost
Posted: 2017-08-30T13:46:09-07:00
by dlemstra
The JP2 format currently does not support writing density. See
viewtopic.php?t=10971#p35228 and
http://studio.imagemagick.org/discourse ... 807#p56554. We now use OpenJPEG instead of jasper. If you can point me to documentation on the OpenJPEG site (
http://www.openjpeg.org/) on how we should read/write the DPI I might be able to add support for this.
Re: Image Density in jp2 format being lost
Posted: 2017-08-30T14:33:17-07:00
by Keith.Vinson
OK, thanks for the reply. I'll keeps your request in the back of my mind. I'll post if I come across a method to set the density in the OpenJPEG library...
Re: Image Density in jp2 format being lost
Posted: 2017-08-31T13:27:51-07:00
by dlemstra
I asked one of the OpenJPEG developers on twitter if it possible to read/write dpi. I was told that it is currently not possible with the OpenJPEG library. I might be able to create a patch for this but I don't know when I will have time for that.