I want to control the size of the image results.
(as an example - if I want to make an image of A4 size - How do you do?)
Began with a simple example that I found here:
http://www.imagemagick.org/Usage/basics/
Code: Select all
convert -size 300x300 xc:red -append c:\temp\pic\red_300x300.jpg
When I created a jpg (or tif) image, I got the following results
and if I created an gif image - The image became black.... with the same size:?
and when I created a png image, I got the following results72 dpi
300 x 300 Pixels
10.6 x 10.6 cm; 4.2 x 4.2 inches
________________________________________________________________2dpi
300 x 300 Pixels
381.0 x 381.0 cm; 150.0 x 150.0 inches
Then I tried to add "-density" and "-units" like this:
Code: Select all
Set FileOut = c:\temp\pic\RedSquare_1x1inch.png
convert -size 300x300 -density 300x300 -units PixelsPerInch xc:red -append %FileOut%
