We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
You can continue the conversation there. Go to discussion →
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
I'm assuming this is the correct repo for this issue, but I'm not 100% sure.
I am able to use imagecreatefromstring() to load PNG and GIF images, but not JPEG images. When I try to load a JPEG, I get this error:
imagecreatefromstring()
imagecreatefromstring(): No JPEG support in this PHP build
Here is a code example that causes the error:
$fileData = file_get_contents('/path/to/image.jpg'); $image = imagecreatefromstring($fileData);
The text was updated successfully, but these errors were encountered:
I saw that we aren't compiling the PHP with the gd extension. It should be the case.
gd
@mpociot could it be included? I mean, I saw some PR saying that we are keeping a small list of extensions, so that's why I'm asking.
Are you able to compile the PHP with that extension (gd) @Maxoplata? So you can validate it and we could know that this is the case.
Sorry, something went wrong.
The specific extensions we can add will depend upon whether they're ready for cross-platform support.
Please consult the static-php-cli Extensions table for details of which extensions are available across the major platforms.
As of this writing, gd is not available for static builds for Windows. I've requested it. When it is, then I'll look to add it to future builds 👍🏼
Will leave this issue open until then.
simonhamp
No branches or pull requests
I'm assuming this is the correct repo for this issue, but I'm not 100% sure.
I am able to use
imagecreatefromstring()
to load PNG and GIF images, but not JPEG images. When I try to load a JPEG, I get this error:Here is a code example that causes the error:
The text was updated successfully, but these errors were encountered: