Questions tagged [gd]

GD Library is used to dynamically create and manipulate image files.

GD is an acronym for GIF Draw, GD is an open source code library for the dynamic creation of images by programmers. GD is written in , and "wrappers" are available for Perl, PHP and other languages. GD creates , and images, among other formats. GD is commonly used to generate charts, graphics, thumbnails, and most anything else, on the fly. While not restricted to use on the web, the most common applications of GD involve website development.

2961 questions
1
vote
1 answer

Installing node-gd on windows

In the past few hours I'm trying to run node-gd on windows. I've tried several repos and finally found https://github.com/mikesmullin/node-gd. When I run `npm install node-gd` I'm getting the following error: node-gyp…
Deepsy
  • 3,769
  • 7
  • 39
  • 71
1
vote
3 answers

Can't get GD image to display

my code: save this file as captcha.php \n"; echo "\n"; echo…
Code
  • 438
  • 1
  • 5
  • 17
1
vote
1 answer

PHP GD (intervention/image) : quality is different depending on the server

I use the intervention/image library (which use GD) for my Laravel 4.1 project to resize some images (jpg and png). Everything is great on dev server, but in production, the quality of the thumbnails is very poor. I thought it was a GD problem, but…
Philippe
  • 668
  • 8
  • 17
1
vote
0 answers

imagettfbbox() gives different results on windows annd linux

i tried to use the imagettfbbox function to get the width and height for my text. after doing some work everything was fine on my linux machine. when i now run the same script on a windows machine the image looks really bad. so i made a simple…
BigMichi1
  • 307
  • 1
  • 11
1
vote
1 answer

imagecopyresampled (jpg) give me black background

I have a problem with imagecopyresampled. So, I crop a picture (jpg), want to add white background, for the output picture ... and it doesn't work ... Here is my code: $this->imageResized = imagecreatetruecolor($sizes['width'],…
user3013440
1
vote
1 answer

Creating custom Captcha in PHP / GD Library

How can I create a Captcha identical to this using PHP and GD Library? Source: http://www.aphrodite-agency.com/assets/captcha/captcha.php Only letter or number in circle are valid... index.php :
user3272321
  • 59
  • 1
  • 1
  • 5
1
vote
2 answers

Accented characters not showing when using imagettftext with otf but showing with ttf

I'm using imagettftext to generate images from OpenType files. Everything works until I try to use an accented character (e.g. å) or a character such as √. In their place I get the .notdef glyph. The fonts I'm using definitely have these characters.…
DB.
  • 157
  • 1
  • 3
  • 10
1
vote
1 answer

Laravel Image creation code

I have copied the following code from somewhere in the web. It is stored in a file called captcha.php: $md5_hash = md5(rand(0,999)); //We don't need a 32 character long string so we trim it down to 5 $security_code = substr($md5_hash,…
user3077503
1
vote
0 answers

Is possible get the orientation of an image generated by the php gd in javascript?

There's any ways for detect the angle/orientation of an image generated by php gd in javascript? I would need something like this var angle = getImgData(document.getElementById('img1')).getOrientation();
Sam
  • 2,950
  • 1
  • 18
  • 26
1
vote
0 answers

php create transparent image marker and add a number to it dynamically

I don't manage to make it transparent and at the bottom makes the last 7 lines black.
Sebastian
  • 475
  • 2
  • 8
  • 19
1
vote
2 answers

Cannot force install GD with cpan/cpanm

I have looked and seen similar issues posted but am unable to get GD working. the following error arises with libgd and libpng installed... clang -c -I/usr/local/include -arch i386 -arch x86_64 -g -pipe -fno-common -DPERL_DARWIN…
Lel
  • 139
  • 1
  • 2
  • 13
1
vote
1 answer

I think i have a vector image format, how do use it to draw an image in php?

I have found an image format that is being used by some applets. but i don't know what it is. I think it is some kind of vector graphics format that is used by the GD library. could someone help me decode it? I would like to use the raw data to…
Bingy
  • 643
  • 4
  • 9
1
vote
1 answer

how to convert any image file into EPS format in PHP?

I have an image processing system in PHP with Imagemagick. The existing system will be processing images of EPS format for some process and PNGs for the remaining process. So, I need to upload the same image file in EPS and PNG. I am doing the file…
Peterson Andrew
  • 243
  • 6
  • 16
1
vote
1 answer

Error creating image with GD

I have an image error when i try to generate a jpeg image but php doesn't retrieve me any errors
50l3r
  • 1,549
  • 4
  • 16
  • 27
1
vote
0 answers

Creating captcha with GD library, no result,

When I check the index page it does not show anything but a broken image. These are the files I am using. index.php
King
  • 23
  • 8