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

Multiple Upload with Grocery Crud

I'm working with grocery crud for some operations on the backend, and I need to upload 5 pictures (3 of them with the same width and height and the other 2 with diferents sizes) but, when I try to upload with set_field_upload, all the files are…
1
vote
1 answer

imagecreatefromstring fails while successful in .NET

I have an image that is base64 encoded. Decoding this image through C# works like a charm with the following code: byte[] imageBytes = Convert.FromBase64String(decodeImageForm.Data); var ms = new System.IO.MemoryStream(imageBytes, 0,…
Itamar
  • 81
  • 1
  • 6
1
vote
1 answer

PHP GD2 How to show in-fly generated image without modifying header?

I'm working at my own signature generator. How to show in-fly generated image without modifying header? I need to know it, because my site (based on WordPress) already sent headers, and I cannot modify it. Of course I can modify theme, but I am just…
roomcayz
  • 2,334
  • 4
  • 17
  • 26
1
vote
2 answers

Magento resize with gd2 bad image

i have problems to obtain good thumb from some images, when the original images are striped or checked shirt. With the magento's gd2 library resize() in Varien_Image_Adapter_Gd2 class (magento 1.5 version) i obtain an image with a strange effect…
LucScu
  • 359
  • 1
  • 4
  • 22
0
votes
1 answer

How to write text on image onfly in php?

I want to make an image "onfly" with some text. Is it possible with php? I am trying with this one but no output is coming can anyone watch my code please? function createCaptcha($string){ $image = PATH_DIR . "blueprint/images/bg6.png"; …
danny
  • 465
  • 3
  • 8
  • 18
0
votes
1 answer

imagecopyresampled in php - premultiplied alpha issue

I have an issue with imagecopyresampled for buffers that use alpha values. apparently the algorithm premultiplies the pixels alpha values before filtering, this results in black borders arround objects. Steps to reproduce: take an image that is…
Mat
  • 4,281
  • 9
  • 44
  • 66
0
votes
1 answer

How can i remove black background color when creating thumbnail

When I am creating thumbnail in codeigniter I get an image with black background color. Why did it happen? This is the code in controller: $this->load->library('image_lib'); $config['image_library'] = 'gd2'; …
Mas User
  • 166
  • 1
  • 5
  • 17
0
votes
1 answer

image cropping with codeigniter no GD library - GD2 is intalled

I am working on media library for a website at the moment, and one of the features is that user can create a cropped version of an image that they upload. My problem however is this, when I try and crop the image, I get the following error, The…
Udders
  • 6,914
  • 24
  • 102
  • 194
0
votes
1 answer

CodeIgniter 2 image_lib->resize() error - Renders blank page and does not return an error message

I'm trying to do something very simple but I can't see to make it work. For what it's worth, I'm currently testing on my MAMP dev machine, but get the same results from staging server (GoDaddy GridHost). Here's what I want to do: Upload an image…
Kyle Noland
  • 4,788
  • 6
  • 30
  • 33
0
votes
2 answers

Errors compiling PHP with GD2 and Freetype on Mac Leopard 10.5.6

I'm compiling PHP5.2.9 on Mac OS X 10.5.6. Need some help to figure this out. I have PHP compiling and working with a basic config, and now I'm trying to compile with GD2. The problem I'm running into is that if I add the argument to build with…
Geuis
  • 41,122
  • 56
  • 157
  • 219
0
votes
2 answers

Pyrocms front end controller - can't output image to the browser

here is the code code below class Home extends Public_Controller { /** * Constructor method *`enter code here` * @author PyroCMS Dev Team * @access public * @return void */ public function __construct() { …
0
votes
1 answer

Fatal error: Uncaught Error: Call to undefined function ImageCreate()

I am getting following error while generating qrcode in php. Error: Fatal error: Uncaught Error: Call to undefined function ImageCreate() Fatal error: Uncaught Error: Call to undefined function ImageCreate() in…
Hello World
  • 2,673
  • 7
  • 28
  • 60
0
votes
1 answer

Image resize not working in Codeigniter PHP

I have a Codeigniter website with multiple image upload, my controller is like below: $this->load->library('upload'); $image = array(); $ImageCount = count($_FILES['pimage']['name']); for ($i = 0; $i < $ImageCount; $i++) { …
TBC
  • 101
  • 7
0
votes
1 answer

Image does not display when uploaded - Magento 2.4.3

I get the following error when I upload an image in magento 2.4.3 Does not display on front end or in product grid [2022-05-28 17:46:30] main.CRITICAL: Warning: imageinterlace() expects parameter 1 to be resource, null given in…
aidin
  • 111
  • 7
0
votes
0 answers

PHP Change one frame from another

I have code: Электрическая схема I have some…