Skip to content

[HTML5]: JPG image still causes Runtime Error in HTML5 build with Solar2D 2026.3731 #939

Description

@AleCGames

Hi,

I’m still having an issue with JPG/JPEG images in HTML5 builds using Solar2D 2026.3731, the latest version that includes the fix for this issue.

The game only uses one JPG image. The image details are:

  • File size: about 130 KB
  • Dimensions: 1537 x 2048 pixels
  • Width: 1537 pixels
  • Height: 2048 pixels
  • Horizontal resolution: 96 dpi
  • Vertical resolution: 96 dpi
  • Bit depth: 24

This same game used this JPG image before without problems. After the JPG issue was introduced in Solar2D, I replaced it with a similar PNG image as a workaround.

Now, with Solar2D 2026.3731, I tried using the JPG image again, but when I load the HTML5 build in Chrome, I get a Runtime Error in the console.

The game does not use a large number of JPG images. It only uses this single JPG file.

Target platform and where build was made:

  • Device: Google Chrome
  • OS: Version 152.0.7977.83 (Official Build) (64-bit)

I’m attaching a screenshot of the Chrome console error, along with the image I’m using.

Image Image

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions