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
3
votes
5 answers

PHP Merge jpeg on top of png with alpha transparency

I am trying to put a jpeg behind a png - where the png has alpha transparency. The foreground image is here: http://peugeot208.srv.good-morning.no/images/marker-shadow.png The image behind is a facebook profile image - typically like this:…
nitech
  • 1,822
  • 3
  • 21
  • 35
3
votes
1 answer

I can flip images horizontally/vertically, but I can't rotate them with the GD2 library

I am developing a feature to allow an image to be rotated in increments of 90 degrees or to be flipped horizontally or vertically. I have the code working just fine on my own computer, but when uploaded to a live server, the rotate functionality…
JGDev
  • 261
  • 1
  • 4
  • 8
3
votes
2 answers

How to isolate only one colour on image with PHP?

Is it possible to leave (isolate) only one colour in image? Currently I'm interested in green:005d00
mic-kul
  • 989
  • 3
  • 16
  • 26
3
votes
1 answer

How to change background color cropping image_lib Codeigniter

I've been searching many of site to change background color when cropping image in codeigniter but there's no result. I have an image when I crop using image_lib GD2 Codeigniter the offset image background color is black here's the pic how to…
yulianto saparudin
  • 239
  • 2
  • 9
  • 25
2
votes
3 answers

Is there a word wrap function for GD2 in php?

people. I have slight problem with GD2 text on image. I have everything working and now i try to add text on image that can wrap within image. For example i have image with width 200px and large block of text. If you use imagettftext() text goes…
arma
  • 4,084
  • 10
  • 48
  • 63
2
votes
1 answer

Codeigniter strip image EXIF data

I am doing image upload and resizing using the gd2 image library. The image EXIF data is rotating my vertical pictures on resize. Is there a way to stop the image from rotating? or strip the exif data in php?
anna
  • 33
  • 4
2
votes
1 answer

what is the fastest way to concatenate two images in php?

i need to concatenate images in php (two or more), both vertically and horizontally. What's the fastest way to do that? obs: i don't want to use non-native libraries another doubts. will the resulting image have the sum of the images sizes or could…
Hugo Mota
  • 11,200
  • 9
  • 42
  • 60
2
votes
3 answers

image_lib in CodeIgniter not working... code just stops... no error, nothing

For the life of me, I can't figure out why image_lib (the image manipulation library) in CodeIgniter isn't working. I have it working perfectly fine on my local machine, so I know the code is right. But when I upload to a production server, trying…
Jonathan
  • 21
  • 1
  • 2
2
votes
1 answer

Dynamic Images Based on Text PHP

I'd like to generate a fancy font text image using GD. I have found:
Johnny
  • 1,963
  • 4
  • 21
  • 24
2
votes
0 answers

Codeigniter image_thumb() stops execution

I am using CodeIgniter 2.2.0 , apache 2.4.17, PHP 5.6.16. When I need the thumbnail of any image I use the image_thumb() function. But when I upload the image which has size more than 3 MB and then tries to get the thumbnail at that time…
Apoorva
  • 218
  • 3
  • 14
2
votes
1 answer

Are there any libraries (or using GD2 or Image Magick) to allow the upload and processing of EPS or Vector files?

I need to allow for scaling a user uploaded logo to different sizes for different formats, are there any libraries (included or extra) that allow for the procesing of EPS files or high res artwork for this purpose?
Jon Busby
  • 49
  • 1
2
votes
1 answer

OSX with XAMPP: "imagegd2(): unable to open temporary file"

I get "imagegd2(): unable to open temporary file" error message when I go to an image URL that is generated with imagegd2() like: $image->make($data['path']); $image->resize(100, null, true)->crop(70, 70); // create response and add formated…
sunzu
  • 106
  • 1
  • 6
2
votes
1 answer

Strange result of making one picture from to on PHP

In my project, I need to merge two pictures. The first (img.png): img http://uoops.ru/1/img.png And (for example) second (photo.png): img http://uoops.ru/1/photo.png This is PHP code: $photoImage =…
Evgeny
  • 95
  • 6
1
vote
0 answers

What measurement does GD2 use for imagettftext X & Y?

I'm currently working on a project that allows a user to pick an image, edit the text in it (using jQuery jEditable on a position:absolute formatted element to make it 'seem' like its the image still). Once the user is happy with the edit, they…
andyg
  • 73
  • 1
  • 10
1
vote
0 answers

PHP - Windows imagecreatefromjpg() is undefined

I have Call to undefined function imagecreatefromjpg() error. Although i added gd library as extension=php_gd2.dll in php.ini problem still occurs. What do i need to do? OS: Windows 10 Edit: Not using XAMPP Edit2: vardump(gd_info()) was showing that…
Emre Karakuz
  • 91
  • 1
  • 5