-density sets the density for reading (vector) images
-set density sets the density within existing images.
NOTE: that -density for read also sets the density attribute of images as they are read in (like -label does).
As such really there are currently three uses of the -density option:
- reading density for vector images;
- set (override) the density attribute on images being read in;
- and set density attribute on images in memory.
What I like to know just how these 3 distinctions of density (and other) settings should be handled by the future IMv7 CLI interface? The most important aspect would be clarity to users.
The distinction is subtile, and is the cause of a lot of grief in the current implementation of the Command Line Interface, not just for this but in may other image meta-data settings. It is this distintion that many options are already split into two types... for example you use -label before reading images and -set label after reading images. Also the reason their is a difference between the options -page and -repage.
See http://www.imagemagick.org/Usage/basics/#attributes
The -denisty image meta-data attribute is one that has not 'split' in this way in IMv6 and will never be.
But it is a key question for CLI redevelopment in IM v7