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?".
The later sets output density, That is read at 72 dpi an doutput at 300dpi without changing the pixel size of the image.
Essentially you have 'compressed' the image in terms of 'real-world size' but not in number of pixels.
Using density before reading the image is only for vector formats such as PDF, EPS, PS, etc. It makes no sense or affect on raster images.
Apply the density after reading a raster image such as EXR. But you may need special defines for EXR output. See EXR format information at https://imagemagick.org/script/formats.php
.exr is now an adapted image format for printing. Hence the dpi concern. Plus, some tools like Nuke and photoshop have size limitations and ImageMagick does not. Photoshop has a limit of 1000 inches and will not read-in the image properly (substituting white) with something more. Nuke has a hard-coded limit of 65169 pixels in any direction.
Many of our clients are asking for VERY large resolutions (currently working on one greater than 140K), and the client's specification requires the dpi to be set on delivery.
So, yes, perhaps it makes no sense, but I'd like to deliver what they ask for no matter how silly it might seem.
DPI has long been used for specifying photos and graphics for print.
But your command is incorrect syntax for ImageMagick. You need to specify the density after reading a raster image. If it does not set the density for EXR output, then you will have to request an enhancement. How are you determining that the output density is incorrect -- what tool? Have you tried EXIFTOOL?
and that re-sized the image's overall resolution by the equivalent ratio of input/output dpi (eg. 180/72), but did not alter the dpi.
You might be right about exr support dpi. I have not found anything in the spec as of yet. Trying to confirm with an engineer I know.
[Confirmed. Exr does not natively support dpi.]
I'm willing to try using -set to add to the exr's meta-data to see if other software could recognize a dpi <integer> declaration.
Currently, trying to use alternate image formats. Tiff has a "Maximum TIFF file size" and can't be used. Trying PSD which has all the settings I need as long as I keep the pixel dimensions/dpi under 1,000 inches.
My convert call looks like this for now (the input image will eventually be 146880x65160):
Because of the 1000 inch limit imposed by Photoshop, I have to include dpi settings in order for my final image not to go beyond this limit.
I've gotten this to work, much in the same way your example reads, but have run into another problem.
Turns out IM only supports output of 8 and 16 bit versions of PSD/PSB files and unfortunately that allows the quantum setting to clamp the color depth of true HDR images.
So, waiting for a new release with 32 bit PSD/PSBs being created without clamping the highs and lows of the HDR.
I sent a message to Weary Wanderer to see if he would clue me in on how the header needs to be output for the psd 32 bit depth, so I could try the compile that he did a few weeks ago, but I will need to want on that. Doubt if I could figure it out without a similar example.
- J
Last edited by Jimbo on 2019-09-06T11:20:11-07:00, edited 1 time in total.
Your version of ImageMagick is Q16 HDRI. So it should write data outside the quantum range, if the output format supports that. Have you tried Q32 IM 7 with HDRI?
I am unaware whether IM can write 32-bit single channel PSD images. One of the developers will need to comment.