1206044 - Image displayed larger than expected size in Crystal Reports

SAP Knowledge Base Article - Public

1206044 - Image displayed larger than expected size in Crystal Reports

Symptom

  • Image displayed too large.
  • Image larger than expected size.
  • When a picture is inserted in Crystal Reports, it is displayed larger than its expected size.
  • When opening the same picture in an image editor like Microsoft Paint or Adobe Photoshop. It is displayed correctly with the expected size dimensions.
  • After adding the picture, it may cause Crystal Reports to stop responding, and close unexpectedly. ( crash )

Environment

  • SAP Crystal Reports 2008
  • SAP Crystal Reports 2011
  • SAP Crystal Reports 2013
  • SAP Crystal Reports 2016

Reproducing the Issue

  1. In Crystal Reports designer, insert an image.
  2. Notice the image is much larger than the actual image size.

Cause

  • This behavior occurs when the system dots per inch (dpi) is set higher than the image itself.
        
  • For example, consider the following scenario for an image that is 500 pixels wide by 344 pixels in height with the system dpi set to 96.
         
    If the resolution of the image is set to 96, then the image will appear in Crystal Reports in its original size.
    If the image is set to 72 dpi, then Crystal Reports will enlarge the image based on the following formula: system dpi/image dpi = image amount will be enlarged.
        
    In the above example, 96dpi/72dpi = 1.33. In Crystal Reports, the image will appear as 665 pixels (500*1.33) by 457 pixels (344*1.33).

Resolution

  • To solve issues for images that too low dpi, open the image in Microsoft Paint, then save it.
    This will set the image dpi to the same level as the system dpi. The image will now display with the expected size in Crystal Reports.

Keywords

Crystal Reports, image size, image display, crw32, large image size, , 8833566 , KBA , BI-RA-CR , Crystal Reports designer or BusinessViews Manager , Bug Filed

Product

Crystal Reports 2008 V1 ; SAP Crystal Reports 2011 ; SAP Crystal Reports 2013 ; SAP Crystal Reports 2016 ; SAP Crystal Reports XI ; SAP Crystal Reports XI R2