Skip to content

Large PNG image fails to render in PR #94

Closed

Description

@mtlynch

CodeApprove fails to render a large PNG image in a PR:

image

Inspecting the source, I see this tag for that image:

<img data-v-340c15f2="" src="data:image/png;none, " class="block m-auto">

From Github it looks fine:

image

I notice that it's a very large image (1.74M), and CodeApprove seems to be inlining the image as base64, so maybe that's messing things up.

Here's the problem image as it appears in the source tree: https://p.tinypilotkvm.com/-UyhkwSMqFC/export-settings.png

Activity

  1. samatcodeapprove commented on Mar 31, 2023

    @samatcodeapprove

    @mtlynch thanks for reporting! I suspect GitHub has a limit (and I bet it's 1MB) above which I need to make a separate request for file content instead of getting it inline in the normal "pull request changes" API request. This shouldn't be too hard to fix.

  2. samatcodeapprove commented on Apr 12, 2023

    @samatcodeapprove

    @mtlynch deploying a fix for this now!

  3. mtlynch commented on Apr 12, 2023

    @mtlynch
    Author

    Confirmed, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions