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 size of the arising PNGs is correct, but unfortunaltely the resolution ist not (96 dpi instead of 300). I tried to add the command -resample 300 at different positions in the code as I read that the order matters, but I couldn't figure it out. Could you please give me some advice?
I'm running Fedora 18 and using ImageMagick 6.7.7-5. Actually I never cared about that before and was just happy that ImageMagick was already installed on this OS.
anbr wrote:... just happy that ImageMagick was already installed on this OS.
Yep, IM is always good. Your 6.7.x... version is pretty old, so I don't know if it will help (or if it will even work), but you might try adding "-units PixelsPerInch" to your command ahead of the "-density 300" setting.
Thanks! Adding -units PixelsPerInch worked, even with my outdated version. So the PNG is the same pixel size as before but now the resolution is set to the specified value. Respectively, nearly the specified value (some applications shows 299 instead of 300) which I guess is due to the somewhere internal usage of pixels per centimeter.