Page 1 of 1

PNG Image Size problem

Posted: Mon Aug 29, 2011 4:42 pm
by ndiel
Dpot is not outputting PNGs at the correct size for some inputs.

When I use the following parameters:
Width: 3300 pixels
Height: 2550 pixels
Crop white space checked
Resolution: 300 dpi
24 color depth

The outputted PNG is 10288 x 7956 pixels, far from my stated input. Further my dataset is large, 2million+ points.

Posted: Mon Aug 29, 2011 6:10 pm
by DPlotAdmin
The dpi setting is mostly intended for TIFF output and users of LaTeX that insists that dpi actually means something... when it clearly doesn't before printing.

If you set the resolution to anything less than 100 dpi then you'll get the dimensions you specify minus the area cropped by "Crop white space". If you set it to anything greater than 100 dpi then all dimensions are multiplied by <resolution>/<screen resolution>. (In most cases Windows will report your screen resolution as 96 dpi.)

It's all confusing, I know. If you want the dimensions you specify then set resolution=0.

Posted: Mon Aug 29, 2011 6:42 pm
by ndiel
My original intention was to create a png that would fit on letter paper (8.5"x11"). That is a perplexing equation to use to create the desired output size. Though thanks for the clarification.