Top "Php-gd" questions

The PHP GD class contains built in image manipulation for PHP versions 4.3 and up.

Unable to locate package php7.3-gd

I get the error from my cakephp 2.x project: The PHP GD extension is required, but is not installed. I …

php cakephp php-gd
How to add php gd extension to Dockerfile

I'm getting this error when trying to deploy using alpine: phpoffice/phpspreadsheet 1.2.1 requires ext-gd * -> the requested PHP extension …

docker php-extension alpine php-gd
Troubles with Docker + PHP7 + GD resulting in "Call to undefined function imagecreatefromjpeg()"

I'm having troubles when trying to create an image using imagecreatefromjpeg using this Dockerfile to generate the container: FROM php:7.1…

php docker gd php-gd
how to draw semi-transparent rectangle in php?

Here is an example what I would like to do: Here is the result: function red_rectangle($img_src,$x1,$…

php php-gd
imagecreatefromjpeg(): gd-jpeg: JPEG library reports unrecoverable error - Laravel

I have 2 below routes :- Route::get('resize/avatar', function() { $image = 'avatar.jpg'; $target_filename_here = 'thumbnail_'.$image; $ffs = …

php laravel-4 php-gd
How to load an image resource from a URL into a PHP script, using cURL?

I'm using the Google Charts service to generate some QR codes that I afterward need to manipulate (e.g. rotate, …

php curl php-gd
What's wrong with imagecreatefromstring function?

What is wrong with this code? <?php $data = "iVBORw0KGgoAAAANSUhEUgAAAuwAAAUeCAYAAAAl3WRgAAAgAElEQVR4Xuzdz6/vCV3f8TPADIozowg1ETZ2U2Chm6oLuqkdE1…

php image php-5.3 php-gd
How to merge multiple images and text into single image?

I have multiple PNG images inside a div, those images are PNG and presents as single image for user depending …

php image php-gd
Docker Alpine - Enable GD JPEG support

I'm having a problem getting GD Jpeg support through the Alpine image for PHP-FPM. I've tried every combination I can …

docker alpine php-gd libjpeg-turbo
PHP recursive function return value

I have written a recursive function in PHP to crop text. The cropped text will have ... attached to the end. …

php recursion return php-gd