Questions tagged [gd2]

GD2 as well as GD are open source code libraries for the dynamic creation of images by programmers. GD2 is the improved version of GD and a widely used standard. For example, GD2 in included in PHP 5.

GD2 as well as are code libraries for the dynamic creation of images by programmers. GD2 is the improved version of and a widely used standard. For example, GD2 in included in .

Useful Links:

109 questions
1
vote
1 answer

How can I fix an unable to load dynamic library gd2 php warning error?

I have an error in php 7.3 that I have been trying to solve for a while. Unable to load dynamic library 'gd2'. I thought I had found the solution here: https://blog.amirasyraf.com/blog/php-startup-unable-to-load-dynamic-library-gd-so I tried…
1
vote
3 answers

Save image from one format to another with php gd2

I have a database with a column filled with image binaries data. After I made some research I figuried out how to detect in which image format is the data. Lets say in of the records in my images column is in gif format, now I want to save it with…
bozhidarc
  • 834
  • 1
  • 11
  • 25
1
vote
2 answers

Converting a png to jpg with GD2.. transparency problem

I have an image.png with white background and some trasparceny over it. I tried this to convert the image into jpg: $data = file_get_contents('image.png'); $resource = imagecreatefromstring($data); imagejpeg($resource); //> I TRIED WITH QUALITY =…
anon
1
vote
0 answers

Merging Transparent PNGs results in inconsistent black dots

I'm merging some transparent PNGs in PHP with GD. I have a bunch of numbers done up on a transparent background that I put together onto a final image. Running the script on one server with the following GD config: GD Support => enabled GD Version…
NuclearDog
  • 142
  • 3
1
vote
0 answers

Your server does not support the GD function required to process this type of image. in Codeigniter

I am trying to compress the image size in codeigniter with the help of GD2 Image compression Library but its showing me error Your server must support the GD image library in order to determine the image properties. Your server does not support…
iazizkhan
  • 322
  • 1
  • 5
  • 19
1
vote
0 answers

PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/no-debug-non-zts-20160303/gd2'

I recently bought a new Macbook pro with php 7.1 installed and everything was working fine since I tried to upgrade php to 7.2 using homebrew. When I try to show my version of php with php -v, and it works but it returns me the following warnings :…
Maxime Oger
  • 160
  • 1
  • 8
1
vote
0 answers

Edit an image with php gd2 after capture from ffmpeg

Hy. I'm new to ffmpeg. I want to merge two images after capture from a video. My php GD2 codes are correct. I've tried it to images that already stored in my pc. but it was not work for me when captured with ffmpeg. Here is my ffmpeg code. it's…
1
vote
4 answers

CODEIGNITER: Your server does not support the GD function required to process this type of image

Gd2 is also enabled. Tried many ways... Don't know what's wrong A PHP Error was encountered Severity: Notice Message: getimagesize(): Read error! Filename: libraries/Image_lib.php Line Number: 1651 Backtrace: File:…
flixy
  • 73
  • 2
  • 10
1
vote
2 answers

resizing image using gd2 in codeigniter

I am trying to resize an uploaded image from Codeigniter panel to the server, in this process when i try to overwrite the image i get a black background with the resized image in it (image attached) , please help me with this My code is as follows…
Rebecca
  • 403
  • 2
  • 7
  • 29
1
vote
1 answer

Getting GD2 to work on Windows 2000 SP4 (PHP 5.1.6)

I have tried everything.. GD will not enable! Essentially, I have extension_dir="C:\PHP\ext" extension=php_gd2.dll I've added c:\php\ext and c:\php to my windows path variable. I copied php_gd2.dll to my system32 folder.. I've scanned my entire INI…
Dutchie432
  • 28,798
  • 20
  • 92
  • 109
1
vote
1 answer

Resize an image and then crop it with Codigniter

Hi i'm using the Codigniter image manipulation class in order to create a thumbnail with a fixed size So i wont first to resize it (So when i crop it i get a large peace of the image) And then crop it The resize works But the crop dont Here is the…
toiglicher
  • 59
  • 7
1
vote
1 answer

Codeigniter Image Resize/Matermarking fails when called in series

I have the following image_helper function resize($img_path_name, $new_path_name = NULL, $new_width = NULL, $new_height = NULL){ $CI =& get_instance(); $config['image_library'] = 'GD2'; $config['source_image'] = $img_path_name; …
nuke
  • 11
  • 5
1
vote
1 answer

CodeIgniter/PHP/GD2 Image Manipulation is playing up

I have a website going that takes a user's uploaded image, and makes three copies - a 'full' copy to print with (downsized to 1500x1125), a 'web' copy to display online (not coded yet), and finally a thumbnail. So here's the code - _imageformat() is…
Jack
  • 9,615
  • 18
  • 72
  • 112
1
vote
0 answers

codeigniter Image lib can not be displayed because it contains error

however my GD is installed and working correctly as i tested on local but when I uploaded to client server it showing error "The Image " cannot be displayed because it contains errors. I access the image localhost/validate_image/show_image My…
Mukesh S
  • 367
  • 5
  • 19
1
vote
1 answer

Error resizing image with codeigniter

i have a problem with resizing image in CI ( i'm new to CI by the way ). so here is my code : $config['image_library'] = 'gd2'; $config['source_image'] = base_url()."/uploads/test.png"; $config['maintain_ratio'] = TRUE; …
taek
  • 1,009
  • 3
  • 11
  • 14