Skip to content
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

PHP Fatal error: Paletter image not supported by webp in /claviska/simpleimage/src/claviska/SimpleImage.php on line 306 #342

Open
Stefaminator opened this issue Feb 28, 2025 · 1 comment

Comments

@Stefaminator
Copy link

It seems to be the case that we not always have a truecolor image!

I think there is missing something like this when creating fromDataUri


    // Convert pallete images to true color images
    imagepalettetotruecolor($this->image);

@Stefaminator
Copy link
Author

I think all of the inner "fromFile"-Logic should be executed when creating SimpleImage fromDataUri, too. Why, for example are we preverving gifs tranparency only in case of "fromFile"? This doen't makes sense. It should be happen fromDataUri, too.

Stefaminator pushed a commit to Stefaminator/SimpleImage that referenced this issue Feb 28, 2025
…r creating images from file or from data uri
Stefaminator pushed a commit to Stefaminator/SimpleImage that referenced this issue Feb 28, 2025
Stefaminator pushed a commit to Stefaminator/SimpleImage that referenced this issue Feb 28, 2025
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

1 participant