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...
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...
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...
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...
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...
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 ...
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...
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...
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...
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...
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).
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...
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 &...
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 "...
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 -...
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.
1 Next >
© 2022 - 2024 — McMap. All rights reserved.