Skip to content

JPG Support #40

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Firgeis opened this issue Feb 25, 2024 · 1 comment
Closed

JPG Support #40

Firgeis opened this issue Feb 25, 2024 · 1 comment

Comments

@Firgeis
Copy link

Firgeis commented Feb 25, 2024

When trying to load a texture which is a JPG image I get the following error:

INFO: FILEIO: [resources/***.jpg] File loaded successfully
WARNING: IMAGE: Data format not supported
WARNING: IMAGE: Failed to load image data

Apparently this has to be explicitly enabled when building the lib?

deltaphc/raylib-rs#169

@tjammer
Copy link
Owner

tjammer commented Feb 26, 2024

We don't have any option mechanism right now, and I'm not sure if this is something dune even supports nicely. I think enabling the common image formats (jpg and bmp) makes sense in any case, I'm surprised they aren't enabled by default.

I created a branch (https://github.com/tjammer/raylib-ocaml/tree/test-windows) with a fix, which works on linux. It doesn't yet build on windows (most likely because of encoding of the patch file), but I don't have a windows machine to test the build. I will try again in a few hours

tjammer added a commit that referenced this issue Feb 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants