1. mike S
  2. PowerBuilder
  3. Thursday, 24 June 2021 18:30 PM UTC

I have a user asking about the recommended DPI settings for PNG files for printing.  the png is loaded into a datawindow using either the bitmap() function in a compute or the display as picture on a column.  The datawindow is then printed to a laser printer.

I sort of assume the higher DPI the better, but the file would just be bigger?  Anyone have any idea on this?

Olan Knight Accepted Answer Pending Moderation
  1. Thursday, 24 June 2021 19:29 PM UTC
  2. PowerBuilder
  3. # 1

When I print JPG and PNG files at home, I use 300 dpi. The end result is pretty good, but not fantastic. There's not really a visible difference between the JPG and PNG formats in my setup.

Like Chris said: experiment and see what works best with your environment and hardware.

Comment
There are no comments made yet.
Armeen Mazda @Appeon Accepted Answer Pending Moderation
  1. Thursday, 24 June 2021 18:42 PM UTC
  2. PowerBuilder
  3. # 2

Hi Mike,

The quality of a print will be limited by the least common denominator... the resolution of the PNG, the DPI setting, and the capability of the printer.  So for example, if the PNG is low resolution even the DPI setting is high and the printer is high resolution it's still going to look bad.

Best regards,
Armeen

Comment
  1. mike S
  2. Thursday, 24 June 2021 18:52 PM UTC
any downside to high resolution (pixel density) of the picture? (other than file size).
  1. Helpful
  1. Chris Pollach @Appeon
  2. Thursday, 24 June 2021 19:10 PM UTC
Hi Mike;

I did quite a few consulting stints at Passport Canada before joining Appeon. The Passport PB App captures your passport photo by directly interacting with either a scanner or a camera at the counter. The image has to be a certain minimum DPI - however the camera and scanner devices can record an image in very high resolution. The key we found was to pick a resolution that met minimum printing density required for the Passport without burdening the ASE DB size where the images were stored as Blobs. The happy middle ground that we found was a JPEG image format using a 25% (max) compression to save DB space yet maintain a good image quality for the Passport Book itself (all done via PB code).

So my suggestion would be to try different image DPI's and file formats that best work for your App(s) that meet your clarity and image size needs.

HTH

Regards ... Chris
  1. Helpful
  1. Armeen Mazda @Appeon
  2. Thursday, 24 June 2021 19:38 PM UTC
File size for sure, but also it will use more memory, the screen might render slower, and take longer to print.
  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.