Re: Determine Total Canvas Size WITH Transparent Margins?
Posted: 2011-03-02T14:05:47-07:00
Use https://github.com/ImageMagick/ImageMagick/discussions instead.
https://imagemagick.com/discourse-server/
https://imagemagick.com/discourse-server/viewtopic.php?t=18185
Code: Select all
-set page '%[exif:PixelXDimension]x%[exif:PixelYDimension]+%X+%Y'
Code: Select all
exiftool -S -s -ImageSize file.psd
You can do that with ImageMagick like that, for example:dfelder wrote:I need to extract ... DPI (NOT DP-Centimeter!) from PNGs and PSDs
Code: Select all
identify -units PixelsPerInch -format "%x\n%y" file
Yes. See some details in the bug report.dfelder wrote:Can you confirm that this DID work with previous versions of IM?
Code: Select all
identify -format "%Wx%H" file.psd
Yes. See also:dfelder wrote:Is my assumption correct?
Just wait a few more days. Or ask at the 'Bugs' board if the Windows binaries can be updated.Drarakel wrote:at least the current Q16 Win32 binary is still version 6.6.8-0.
There's no offset or canvas information in those PNG files. The IHDRdfelder wrote: Second, I have posted a series of files here: http://garmentdeli.com/IM/
FYI: It now works with IM v6.6.8-2. The windows binaries have been updated:dfelder wrote:What I'm expecting to see is this:
...
identify -format %Wx%H offset.psd
400x400
Code: Select all
identify -format "%Wx%H" file.psd[0]
I see.. Interesting. (But still, the old versions had a bug there.)dfelder wrote:As it turns out, the [0] actually works with the old version, as well.