PNG Image Size problem

Found a bug? Tell us about it here

Moderator: DPlotAdmin

Post Reply
ndiel
Posts: 3
Joined: Wed Aug 24, 2011 11:55 am

PNG Image Size problem

Post 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.
User avatar
DPlotAdmin
Posts: 2312
Joined: Tue Jun 24, 2003 9:34 pm
Location: Vicksburg, Mississippi
Contact:

Post 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.
Visualize Your Data
support@dplot.com
ndiel
Posts: 3
Joined: Wed Aug 24, 2011 11:55 am

Post 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.
Post Reply