Is it possible to enable gd webp support in PHP 7.4 on debian (with nginx) without recompiling php? All solutions I found recompile PHP7 with the --with-webp-dir param.
You can sort of do it. Save an image file on your server, and then convert it to WebP.
See: How to Enable WebP support Php 7 without Recompiling?
I agree, it is not perfect, but quite close.
Related
When I want to install the CMS TYPO3, following problems get detected:
PHP GD library true color support broken
GD is loaded, but calling imagecreatetruecolor() fails. This must be fixed, TYPO3 CMS won't work well otherwise.
PHP GD library gif support broken
GD is loaded, but calling imagecreatefromgif() fails. This must be fixed, TYPO3 CMS won't work well otherwise.
PHP GD library png support broken
GD is compiled with png support, but calling imagecreatefrompng() fails. Check your environment and fix it, png in GD lib is important for TYPO3 CMS to work properly.
When I search for PHP GD2 in my apache server I can only find GD without the 2 - ist this a problem?
There are also some yellow colored problems - do I also have to fix these?
I had the same problem when running the latest wersion of XAMPP as it include PHP v8.
I installed an older version of XAMPP with php v 7.4.13 and the problem seems gone.
I'm having an issue trying to use Intervention Image to manipulate webp files. The statement causing the error is:
Image::make($image->getRealPath())->resize(250, 250)->save($path);
The error I run into is:
Unsupported image type. GD/PHP installation does not support WebP format.
I have the gd library installed, however it does not support webp.
I've looked around, and the closest I've found to a solution is here, which suggests adding additional extensions when initially (manually) compiling PHP: Call to undefined function imagewebp()
I would prefer not to uninstall and manually compile PHP with additional extensions. Is this the only option? Are there any straightforward solutions?
imagick convert command is not working for this webp image -
https://lh3.googleusercontent.com/VRY0O_3L8VH2wxJSTiKPr72PeM5uhPPFEsHzzYdxenddpTI150M0TYpljnZisQaROR0=h256-rw -
convert -resize 50x50! https://lh3.googleusercontent.com/VRY0O_3L8VH2wxJSTiKPr72PeM5uhPPFEsHzzYdxenddpTI150M0TYpljnZisQaROR0=h256-rw /var/test_sandeepan/output.jpg
Output -
convert: no decode delegate for this image format `WEBP' # error/constitute.c/ReadImage/535.
From this, I conclude that webp is either not supported by Imagick at all, or not supported by this version.
A link shared in this answer, talks about webp support along with imagemagick and php, so I thought imagick must be supporting webp as well, because PHP imagemagick, as per my understanding is nothing but a wrapper class to the imagick utility. Please correct me if I am wrong here.
I conclude that webp is either not supported by Imagick at all, or not supported by this version.
Imagick doesn't really do anything. All it does is convert PHP function calls into C function calls, to call the ImageMagick code through its 'wand' API.
If you want to have ImageMagick support webp, you will either need to install a version that has been compiled with webp support compiled in, or compile it yourself: http://www.imagemagick.org/script/advanced-unix-installation.php
You'll need to install libwebp-devel either from apt/yum, or from https://github.com/webmproject/libwebp as ImageMagick relies on that 'delegate' code being there to read/write webp images.
is it possible to check the php imagick extension for ghostscript support?
for example if it is turned on / off, the ghostscript version used, etc.
which possibilities are there to get additional ghostscript / pdf details?
the only thing i've found so far is this (version of imagick lib itself):
http://php.net/manual/en/imagick.getversion.php
ps: no system calls are allowed (e.g. exec) from within php
I don't know much about imagick, but some things about imagemagick. My guess is that by reading this answer related to imagemagick could help you with imagick as well:
convert -list delegate | grep -Ei '(PDF|PS|EPS)'
(convert is one of the CLI utilities which are part of imagemagick.)
It happens that I need the GD, SQLite and a few more extensions for php 5.1. But I can't find out where to get them.
I am using WinBinder to develop some desktop applications for Windows with php. The minimal php 5.1 pack has the winbinder extension only. I need other extensions for enhanced features like image editing or data storage.
Can anybody help? I really need this very much.
PS: I want to get pre-compiled DLLs if posible.
Thanks and Regards,
Masnun
Check here for your specific version: http://www.php.net/releases/
The 'Windows Binary' link will provide a .zip file containing the ext folder where you will find all standard extensions including php_gd2.dll and the 'Collection of PECL modules...' link will allow you to source additional extensions you may require.
You will still need to enable these in your php.ini as described in other comments.
Hope this helps,
Jason.
GD Installation
To enable GD-support configure PHP --with-gd[=DIR], where DIR is the GD base install directory. To use the recommended bundled version of the GD library (which was first bundled in PHP 4.3.0), use the configure option --with-gd. GD library requires libpng and libjpeg to compile.
In Windows, you'll include the GD2 DLL php_gd2.dll as an extension in php.ini. The GD1 DLL php_gd.dll was removed in PHP 4.3.2. Also note that the preferred truecolor image functions, such as imagecreatetruecolor(), require GD2.
Enhance the capabilities of GD to handle more image formats by specifying the --with-XXXX configure switch to your PHP configure line.
http://www.php.net/manual/en/image.installation.php