Questions tagged [php-gd]

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

The PHP GD class contains built in image manipulation for versions 4.3 and up. This class is commonly used for:

  • Adding filters to images
  • Adding watermarks to images
  • Changing image size for upload
  • Outputting an image to the buffer
  • Creating images on the fly (e.g. captcha verification)

A download of the library can be found at https://bitbucket.org/pierrejoye/gd-libgd/downloads

370 questions
4
votes
1 answer

PHP GD Rendering Unicode Private Use Area (PUA) fonts

I'm trying to use the font-awesome stack on a commercial web development project, and we have got it to a working stage, however we are left with one problem. When viewing our websites on a mobile devices (or a browser without imported font stack…
R4wizard
  • 69
  • 8
3
votes
2 answers

What is name of default font used in PHP GD library?

what is name of default font used in php gd library ? Here is image, rendered by php-gd with default font. http://www.v7n.com/forums/attachments/coding-forum/11752d1269682180-php-gd-graph-links-dots-linegraph-php_gd_graph.jpg Thanks,
user1288585
  • 31
  • 1
  • 2
3
votes
1 answer

Problems with php-gd in php8.1

I have php8.1 running on FreeBSD 12. Install php81-gd and having a trouble to start php due to the following error: Any guess how to fix it, please? PHP Warning: PHP Startup: Unable to load dynamic library 'gd.so' (tried:…
Bakhtiyor
  • 7,198
  • 15
  • 55
  • 77
3
votes
1 answer

Centos 7.2 php 7.3 - Unable to load dynamic library 'gd'

I installed php-gd and then check if is installed like this [root@LP01-Dev ~]# php -v // checking before installing gd PHP 7.3.33 (cli) (built: Nov 16 2021 11:18:28) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.3.33,…
체라치에
  • 173
  • 1
  • 16
3
votes
3 answers

How to install php5-gd in Wheezy Debian php 5.6

2 of my sites are not working bcs I can't install php5-gd library to Debian Wheezy php5.6 ... I tried aptitude install php5-gd, and system said i miss 2 dependencies, which i can not find or install... aptitude install php5-gd sudo apt-get install…
3
votes
0 answers

how to fix php-gd failing to install debian

i know this question has already been asked, but it didn't have an answer that worked for me and i cannot comment as i do not have enough reputation. I'm not able to install php-gd extension on my server. i have php 7.1 on debian 8 here is the…
g s
  • 29
  • 5
3
votes
2 answers

install php-gd ext on Debian

I'm not able to install php-gd extension on my server. I have php 7.2: PHP 7.2.10-1+0~20181001133426.7+jessie~1.gbpb6e829 (cli) (built: Oct 1 2018 13:50:53) ( NTS ) and debian 8 linux: Debian GNU/Linux 8 command to install GD extension: sudo…
tomasnikl
  • 83
  • 1
  • 2
  • 10
3
votes
2 answers

installed php71w-gd and getting error GD Library extension not available with this PHP installation

I am using laravel web framework on centos 7 server and nginx web server, I installed php71w-gd and still getting this error when i want to upload a file Intervention \ Image \ Exception \ NotSupportedException GD Library extension not available…
3
votes
1 answer

Merging two images in PHP and saving it as one ( one with transparent background )

I have the following scenario. There are two .png images with the exact same size. One is the background image and the other one is the overlay image. The overlay consists of a transparent background and white letters. I am trying to combine those…
Dennis
  • 595
  • 1
  • 6
  • 22
3
votes
0 answers

Recreating uploads/linked images with imagecreatefrom* php

User uploaded images account for a large portion of the content on the site I'm working on. I tried storing them outside of the webroot and fetching them with readfile() for security reasons, but it was just too slow so I had to go back to the old…
SISYN
  • 2,209
  • 5
  • 24
  • 45
3
votes
1 answer

PHP Search by Image within website

I have an eCommerce website in core PHP. I want to add search-by-image facility like google images or other reverse image search search engines. I searched a lot on internet and I can't use google's search facility in my website (Neither api nor…
Sohan Patel
  • 259
  • 1
  • 3
  • 13
3
votes
1 answer

php add watermark on a s3 imported image

I'm trying to add a watermark on an image. Both , the image and the watermark image are imported from the aws s3. I tried to do this $watermark = tempnam(sys_get_temp_dir(), 'watermark.png'); //save the file from s3 storage to the…
Aviv Paz
  • 1,051
  • 3
  • 13
  • 28
3
votes
2 answers

How to mail an image created using php

I have the following code that adds the first name and last name onto a predefined image. function create_image($fname, $lname) { $image = imagecreatefromjpeg('sample.jpg'); $color = imagecolorallocate($image, 255, 255, 255); $font_path =…
nad
  • 1,068
  • 6
  • 16
3
votes
5 answers

CentOS: Can't install PhP GD

I have a VPS with CentOS 6 in which I am trying to install PhP GD. I have tried sudo yum install php-gd as I read in other StackOverflow questions. When I do this, I get the following: Error: Package: php-gd-5.5.21-1.el6.remi.x86_64 (remi-php55) …
user3091392
  • 37
  • 2
  • 5
3
votes
1 answer

PHP GD - How do I create a new png image from 3 png images in layers in order

I have the following script, It's very simple, get 3 png images, lay the background down, put the icon ontop of that, then add a watermark to top of all of that. Currently my script produces a weird coloured image once i've created it. (Show here:…
Programmer
  • 61
  • 8