gd Questions

7

Solved

I've tried experimenting with the GD library to simulate Photoshop's muliply effect, but I haven't found a working solution yet. According to Wikipedia, the multiply blend mode: [...] multiplie...
Farcy asked 21/3, 2013 at 17:38

7

Solved

What is the best way to crop or mask an image into a circular shape, using either ImageMagick or GD libraries? (Note, solution exists on "other" Q&A sites, but not StackOverflow)
Maryannamaryanne asked 16/6, 2009 at 1:31

8

I Can't figure out how to install php-gd for PHP7.2. Is there any way to install/enable GD extension in xampp windows? I checked the php.ini file for php_gd2.dll but I can't find that line. It seem...
Buckeye asked 2/4, 2019 at 11:59

2

Solved

I always used GD to manipulate webp normally in my local environment, but when attempting to test my scripts in docker environment, i get "Webp format is not supported by PHP installation.&quo...
Richy asked 23/6, 2022 at 20:28

3

Solved

I have a bunch of images in Amazon S3 that I need to physically rotate. I currently do this by downloading the image to my server, rotating it using GD and overwriting it back to S3. This process ...
Senseless asked 4/12, 2015 at 18:53

5

Solved

I'm getting a no image display when resizing PNG however the following code works for JPEG. list($width_orig, $height_orig) = getimagesize( $fileName ); $ratio_orig = $width_orig/$height_orig; i...
Usance asked 21/2, 2011 at 10:31

1

Solved

Due to a recent vulnerability in libwebp before version 1.3.2 (CVE-2023-4863) I want to find out what libwebp version the Windows builds of PHP (downloadable here: https://windows.php.net/) is usin...
Harmsworth asked 11/10, 2023 at 12:55

3

Solved

I wanted to put random points on an image (stars in space for some little fun side project) I have this simple script. <?php $gd = imagecreatetruecolor(1000, 1000); $white = imagecolorallocat...
Girardi asked 28/7, 2015 at 11:42

2

Solved

When doing a patch resize to a big bunch of JPG, PNG and GIF files, PHP drops dead quite unexpectedly with the following error message: imagecolorsforindex() [function.imagecolorsforindex]: Col...
Mistletoe asked 6/10, 2010 at 16:4

2

Solved

I want to convert an SVG image to a PNG in PHP. I know how to do it in Imagemagick but I dont get it to work on my Webserver and it seems SVG support is not very good with imagemagick. So how can ...
Sheepshead asked 6/2, 2015 at 8:50

6

Solved

I'm creating an "image generator" where users can upload an image and add text and/or draw on it. The outputted image is a fixed size (698x450). On the client side, when the user uploads their im...
Seepage asked 23/4, 2012 at 17:18

5

Solved

What's the best approach to comparing two images with php and the Graphic Draw (GD) Library? This is the scenario: I have an image, and I want to find which image of a given set is the most simil...
Acidophil asked 10/1, 2010 at 14:3

5

Solved

Comparing two images to see if they are both the same files is easy: throw the files MD5. But is it possible or even plausible to determine if two images are same by using PHP GD to get the differe...
Diggs asked 17/7, 2010 at 9:31

4

Solved

I have a class that accepts a GD image resource as one of its arguments. As far as I know, there is no way to type hint this since it is a resource and not an object. Is there a way to validate whe...
Banderilla asked 10/5, 2011 at 22:2

15

Solved

I’ve searched for this and the solutions provided in past questions are completely incomprehensible to me. Whenever I run functions like imagecreatefromjpeg, I get this: Fatal error: Call to und...
Gallice asked 12/11, 2012 at 4:21

2

Solved

is there a way to use imagecreatefromstring() and get somehow what is the image type?
Yand asked 24/8, 2011 at 13:3

23

I newly install Dompdf in Laravel Project via Composer (composer require barryvdh/laravel-dompdf). After enter the Command Terminal Reply Following Errors. Problem 1 - dompdf/dompdf v0.7.0 requir...
Akerboom asked 8/9, 2016 at 7:12

4

chmod(): Operation not permitted while uploading images in laravel at localhost. Enabled GD library. Testing environment is with ubuntu 16.04 with Windows 10(WSL).
Apolitical asked 4/8, 2018 at 13:40

4

Solved

I have image creation code in image_creator. <?php header("Content-Type: image/jpeg"); $im = ImageCreateFromGif("photo.gif"); $black = ImageColorAllocate($im, 255, 255, 255); $start_x = 10; $s...
Scarletscarlett asked 7/11, 2012 at 10:32

2

Tried many ways, but still unable to get GD enabled with JPEG support in PHP8 container running in Docker. Here's the fragment of my Docker file: FROM php:8.0.10-apache RUN apt-get -y update &...
Daze asked 13/10, 2021 at 13:6

2

Good day, in the website I'm working on, I would like to display an unique image to the user generated with a hash from his email address. Should I generate fractals ? If so, how can I make em "...
Reflectance asked 28/1, 2011 at 21:15

12

How does one enable (or perhaps I need to install) GD when my phpinfo() output in "Configure Command" says; --without-gd ? I also have nothing in my phpinfo() output "Core" that lists "gd" PHP Ve...
Relate asked 17/2, 2010 at 18:6

4

Solved

I'm having troubles when trying to create an image using imagecreatefromjpeg using this Dockerfile to generate the container: FROM php:7.1-apache RUN apt-get update && \ apt-get install -...
Truesdale asked 14/11, 2017 at 17:50

5

Solved

Ok, I searched the internet and stackoverflow but I just can't seem to find an answer for my problem. I need to watermark images uploaded by users dynamically, but I don't want just text applied o...
Bolide asked 14/11, 2010 at 2:1

8

Solved

Is it possible to remove the whitespace surrounding an image in PHP? NOTE: to clarify I mean something like photoshops trim feature. Thanks.
Bloodstained asked 3/11, 2009 at 19:41

© 2022 - 2024 — McMap. All rights reserved.