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

Replace IMG_JPG with IMAGETYPE_JPEG because it does not require GD #294

Merged
merged 1 commit into from
Feb 27, 2021

Conversation

StudioMaX
Copy link
Collaborator

According to the documentation of getimagesize:

Index 2 is one of the IMAGETYPE_XXX constants indicating the type of the image.

IMAGETYPE_JPEG comes from the standard library, while IMG_JPG requires the gd extension to be installed.

Example: https://3v4l.org/4PpTD

Closes #293

@JamesHeinrich JamesHeinrich merged commit 1a4591b into JamesHeinrich:master Feb 27, 2021
@StudioMaX StudioMaX deleted the fix-img_jpg branch February 27, 2021 19:12
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

Successfully merging this pull request may close these issues.

Use of undefined constant IMG_JPG - assumed 'IMG_JPG' (this will throw an Error in a future version of PHP)
2 participants