Changing the DPI of a PNG with ImageMagick fails
Hi there, First: Thanks for the great plugin, it really makes my life easier 👍
Today I encountered a bug where the order of the arguments that was passed to ImageMagick caused the DPI of the output image not to be correct.
I found out that using the parameter "-units" as an in argument and "-density" as an out argument solves the issue for me.
As described in this thread (https://superuser.com/questions/479197/i-want-to-change-dpi-with-imagemagick-without-changing-the-actual-byte-size-of-t) the units have to be put in front of the input file and the density behind it. But your asset does it the other way around which makes ImageMagick ignore the Units (and use PixelsPerCentimeter which seems to be the default for PNGs).
Hope those information help, if you need more, let me know :)
Version: ImageMagick 7.0.8-8 Q16 x86_64 2018-07-23 https://www.imagemagick.org Copyright: © 1999-2018 ImageMagick Studio LLC License: https://www.imagemagick.org/script/license.php Features: Cipher DPC HDRI Modules Delegates (built-in): bzlib freetype jng jpeg ltdl lzma png tiff xml zlib
gm 1.23.1 / 2017-12-27
I have a similar problem.
.density(dpix, dpiy) only works with graphicsmagick and doesn't work with require('gm').subClass({ imageMagick: true }).