Skip to Content

Crystal Reports .NET Runtime SP29 - PNGs not scaling correctly anymore

Upgrading from SP28 to SP29, PNG image data with a DPI of 600 is not being scaled correctly any longer (image appears way too large on the report). The same image data scales fine on SP28. The same image saved as a JPG file works fine, too.

Is this a known issue of SP29 yet?

If needed, I can provide such PNG file. The specific one we have I cannot share due to privacy reasons.

Add a comment
10|10000 characters needed characters exceeded

Related questions

5 Answers

  • Posted on yesterday

    It appears this is a regression issue so I'll escalate it to R&D.

    Case - 27076/2021 PNG Image too big if printed with CRVS SP29

    KBA - 3012958

    I'll try to get this in SP 30, no promise though, it's closed now...

    Thanks again

    Don

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on yesterday

    A UFL can materialize a modified (size, and/or type) image from the database to the hard drive.

    But it sounds like your best best is to simply roll back to earlier SP and wait for SP30.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on yesterday

    Here are the use instructions for an existing UFL function that materializes a database-stored image into a local image file.
    Note that this function can also convert the image type (for example, from png to jpg).

    Disclosure: I am the developer of that UFL. There are other UFLs listed here.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on 2 days ago

    Ran into this myself also.

    Solution is to open the image and resize it to fit the page or within CR and resize it there.

    Changes due to Third Party dependencies.

    Don

    Add a comment
    10|10000 characters needed characters exceeded

    • Thank you for the response.

      Is there anything else that can be done? The image data is loaded dynamically into CR from a database field (BLOB field), so the size is variable and we don't necessarily have control over the images our customers use (plus the need to change hundreds of existing images that were working fine before).

      SP28 scales the BLOB field to match the page size, SP29 keeps the full huge scale of the 600 DPI image.

  • Posted on 2 days ago

    At least one of the 3rd-party UFL listed here allows you to resize images on the fly (for example inside the 'Graphic Location' expression). Or you can create such a UFL yourself.

    The added advantage is that by not requiring Crystal to resize the image, you get much lower memory consumption.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.