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

Slim Application Error when an invalid PNG file is encountered #403

Open
joho1968 opened this issue Jun 12, 2023 · 1 comment
Open

Slim Application Error when an invalid PNG file is encountered #403

joho1968 opened this issue Jun 12, 2023 · 1 comment
Labels

Comments

@joho1968
Copy link

While I was doing the initial setup, I specified a .png image that is not a valid .png image. This is the result:

[12-Jun-2023 15:38:59 Europe/Berlin] PHP Warning:  imagecreatefrompng(): "/var/www/typemill.test/_uploads/phpeUDwrD" is not a valid PNG file in /var/www/typemill.test/public_html/system/Models/ProcessImage.php on line 503              
[12-Jun-2023 15:38:59 Europe/Berlin] Slim Application Error:                                                                                                                                                                                 
Type: TypeError                                                                                                                                                                                                                              
Message: imagesx(): Argument #1 ($image) must be of type GdImage, bool given                                                                                                                                                                 
File: /var/www/typemill.test/public_html/system/Models/ProcessImage.php
@trendschau
Copy link
Member

Ok, thank you for reporting, I will add a check in one of the next releases.

@trendschau trendschau added the bug label Jan 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants