Questions tagged [imagecreatefrompng]

Anything related to imagecreatefrompng PHP function for creating an image from file or URL

imagecreatefrompng is a PHP function that returns an image identifier representing the image obtained from file or URL

109 questions
0
votes
1 answer

Saving PNG file created by Google Chart API

Created a QR code using Google API ( Yes I know its deprecated ) However I can't seem to save the image generated. If I click the image and try and save it only saves a PHP file Any ideas ?? Here is the code $data = isset($_GET['data']) ?…
Chris Yates
  • 243
  • 3
  • 16
0
votes
1 answer

Text is disappearing when I try to add an image in PHP + GD library

I'm trying to create a PNG with some text and a scaled picture in it. Here is the code for just the text, it works fine:
Gianluca Ghettini
  • 11,129
  • 19
  • 93
  • 159
0
votes
0 answers

Combine two images in Php - one top of another

I'm trying to create a photo collage in php by combining two images, a background and an image. Certain part of my background is transparent, I want to put the image into that part of the background and merge them. The transparent part could be a…
0
votes
1 answer

The image is not shown when merging two images in PHP GD library in wordpress

I got this code to work but after few weeks the code is not working ,i did try to see where the bug come from but i have no idea. I did create image with GD library and it is created successfully but when i want to merge it with another picture it…
0
votes
1 answer

PHP conversion JPG to PNG and reverse, both JPG images should have same sizes as PNG is lossles format

I am using imagecreatefromjpeg() and imagepng() functions to convert JPG image to PNG. After that I am converting that PNG image back to JPG format with imagecreatefrompng() and imagejpeg() functions. As PNG is lossles format, both JPG images before…
Denis2310
  • 939
  • 1
  • 15
  • 41
0
votes
1 answer

Even though gd library is enabled in windows imagecreatefromjpeg() is throwing error

enter image description here[enter image description here][2] Error:- Symfony\Component\Debug\Exception\FatalThrowableError: Call to undefined function imagecreatefromjpeg() Function trigger:$image = imagecreatefromjpeg($source); // $source -…
0
votes
1 answer

How can I enlarge the "canvas" using provided png data

We are processing nearly 20M existing images (not files), all of which have been converted to the raw PNG data. Each image is always 640x480, and we want them all to be saved as square 640x640 files, with the original image on the top of the larger…
GDP
  • 8,109
  • 6
  • 45
  • 82
0
votes
1 answer

imagepng generate black image background

Below is my image generate code: $thumb = imagecreatetruecolor($newwidth, $newheight) or die('Cannot Initialize new GD image stream'); print_r($thumb); $source = imagecreatefrompng($filename) or die('Cannot Initialize new GD image stream');…
nim
  • 509
  • 6
  • 16
0
votes
1 answer

Create overlay pattern png file using repeat-x repeat-y method

I want to create 600px png overlay pattern using 4px png. This is only repeating x axis. $srcfile = '4px.png'; $outfile = 'overlay.png'; list($src_w,$src_h,$src_type) = getimagesize($srcfile); $out_w = 600; $out_h = 600; $src =…
troshan
  • 134
  • 1
  • 11
0
votes
1 answer

how to merge multiple image in single image

I have multiple images of business card with 1073X672 resolution. Now i want to merge all images in one sheet 5366X3378 (5 row 5 column) so it can store 25 cards. But after 25 cards i want to save rest card on another sheet then after next 25 rest…
prameshwer
  • 121
  • 16
0
votes
0 answers

How to add rotang to image.php

add this $rotang = 20; // Rotation angle to
0
votes
1 answer

how to create an image.php + imagebackground

I'm unable to combine these codes. I have tested but not working (error). Pls help me show ip
0
votes
1 answer

Create image in PHP profile after background

I have a problem I create profile picture on frame. But I want make PNG profile picture inner frame. $picurl = "profile_pic_resize/$get_id.jpg"; $frame = imagecreatefrompng($cover_select); $img =…
OmidZahid
  • 1
  • 1
0
votes
1 answer

php7 for imagecreatefromjpeg - Package 'php5-gd' has no installation candidate?

I am on php7 but I have a legacy program using: imagecreatefromjpeg($filename) So I tried to install: $ sudo apt-get install php5-gd No result: Reading package lists... Done Building dependency tree Reading state information... Done Package…
Run
  • 54,938
  • 169
  • 450
  • 748
0
votes
0 answers

Adding text to a PNG file via PHP

I am trying to add text to a QR Barcode generator via PHP. This is the code I have so far:
elstiv
  • 383
  • 5
  • 27