JPEG 2000 DPI / Density

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
lokelo

JPEG 2000 DPI / Density

Post by lokelo »

I'm using the MagickNet API to try to convert 300 DPI images from TIF to JP2 files but the files are always reported as 72 dpi when querying the FILE with the density tag?
Is the JP2 filetype able to store DPI info?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: JPEG 2000 DPI / Density

Post by fmw42 »

what is your command line?

did you include -density?

see
http://www.imagemagick.org/script/comma ... p?#density

see the note about density for jpg and jpeg2000 at
http://www.imagemagick.org/Usage/formats/#jpg
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: JPEG 2000 DPI / Density

Post by magick »

ImageMagick currently does not save the resolution for JP2 images. If you know of a way to note the resolution with the Jasper delegate library, let us know and we will add a patch to Imagemagick.
krisbfunk

Re: JPEG 2000 DPI / Density

Post by krisbfunk »

Is this still the case? Is this something that other conversion utilities (like Kakadu) also have a problem with? As, I was unable to get the resolution information retained in jp2 files using a kakadu conversion either ... I would normally attribute it to missing a command input.. but since reading your posts I wonder if it's something bigger.

So institutes using Imagemagick to convert to lossless jpeg2000 as an archival format are actually losing the dpi information when storing their files in their repositories or to off site storage.. interesting. I suspect that if this data is not at least recorded in the metadata stage, this could produce some problems down the road.
krisbfunk

Re: JPEG 2000 DPI / Density

Post by krisbfunk »

anyone?
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: JPEG 2000 DPI / Density

Post by magick »

ImageMagick currently does not save the resolution for JP2 images. If you know of a way to note the resolution with the Jasper delegate library, let us know and we will add a patch to Imagemagick.
thor
Posts: 3
Joined: 2011-07-11T08:54:31-07:00
Authentication code: 8675308

Re: JPEG 2000 DPI / Density

Post by thor »

Is this still the case? I really would like to put a density marker in my jp2 conversions. My images will at some point be OCR'd and made into PDF and I would like the PDF's to be viewing the original size and not based off of 72 dpi.
Post Reply