Tag

GD

1 views collected around this technical thread.

php中文网 Courses
php中文网 Courses
Feb 12, 2025 · Backend Development

Real-Time Photo Effects with PHP: Capturing Webcam Video and Applying Filters

This tutorial explains how to use PHP with OpenCV and the GD library to capture webcam video, save each frame as a JPEG, and apply various real‑time image filters such as grayscale, Gaussian blur, contrast adjustments, and edge detection, including keyboard‑controlled filter switching.

FiltersGDPHP
0 likes · 5 min read
Real-Time Photo Effects with PHP: Capturing Webcam Video and Applying Filters
php中文网 Courses
php中文网 Courses
Oct 24, 2024 · Backend Development

Using PHP to Capture Webcam Video and Apply Real‑Time Effects

This tutorial explains how to set up a PHP environment, use OpenCV and GD libraries to capture live webcam frames, apply various image‑processing effects such as grayscale, blur, contrast adjustments, and implement keyboard‑controlled effect switching, all with complete code examples.

GDPHPWebcam
0 likes · 5 min read
Using PHP to Capture Webcam Video and Apply Real‑Time Effects
php中文网 Courses
php中文网 Courses
Oct 17, 2024 · Backend Development

Using PHP to Capture Webcam Video and Apply Real-Time Effects

This tutorial explains how to set up a PHP environment, use OpenCV and GD libraries to capture webcam video, apply various real‑time image effects such as grayscale, blur, contrast, and edge detection, and add keyboard controls for switching filters, enabling creative photo processing.

GDPHPWebcam
0 likes · 5 min read
Using PHP to Capture Webcam Video and Apply Real-Time Effects
php中文网 Courses
php中文网 Courses
Dec 21, 2023 · Backend Development

Accelerating Image Processing in PHP with GD, Caching, and Parallel Execution

This article explains how to speed up PHP image processing by using the GD library for resizing, implementing file‑based caching to avoid redundant work, and leveraging Swoole‑based parallel processing to handle multiple images concurrently, complete with practical code examples.

GDParallel Processingimage processing
0 likes · 6 min read
Accelerating Image Processing in PHP with GD, Caching, and Parallel Execution
Laravel Tech Community
Laravel Tech Community
Oct 20, 2021 · Backend Development

Rotating and Flipping Images with PHP GD: Using imagerotate and Custom Functions

This article explains the difference between image rotation and flipping, introduces PHP's GD imagerotate() function, and provides complete PHP code examples for rotating JPEG images as well as flipping them horizontally or vertically using custom functions.

GDImage FlippingPHP
0 likes · 5 min read
Rotating and Flipping Images with PHP GD: Using imagerotate and Custom Functions
Laravel Tech Community
Laravel Tech Community
Aug 31, 2021 · Backend Development

PHP imagelayereffect Function: Setting Alpha Blending for GD Layered Effects

The PHP GD library function imagelayereffect sets an alpha blending flag to enable layered effects such as overlay on an image resource, describing its parameters, return values, and providing a complete example that creates, modifies, outputs, and destroys an image.

GDOverlayalpha-blending
0 likes · 2 min read
PHP imagelayereffect Function: Setting Alpha Blending for GD Layered Effects
Laravel Tech Community
Laravel Tech Community
Aug 23, 2021 · Backend Development

PHP imagefill() Function: Area Fill in Images

This article explains PHP's imagefill() function, detailing its purpose for region filling in images, describing each parameter (image resource, x and y coordinates, and color), the return values, and provides a complete example script demonstrating its usage.

GDbackendimage processing
0 likes · 2 min read
PHP imagefill() Function: Area Fill in Images
Laravel Tech Community
Laravel Tech Community
Aug 22, 2021 · Backend Development

PHP imageellipse Function: Drawing an Ellipse on an Image

The PHP imageellipse function draws an ellipse on a given image resource at specified coordinates, accepting parameters for the image, center coordinates, width, height, and color, and returns the image on success or FALSE on failure, as illustrated by a complete example script.

Backend DevelopmentGDPHP
0 likes · 2 min read
PHP imageellipse Function: Drawing an Ellipse on an Image
Laravel Tech Community
Laravel Tech Community
Aug 20, 2021 · Backend Development

PHP imagecreatetruecolor Function: Creating True Color Images

The article explains PHP's imagecreatetruecolor function, detailing its purpose of creating a true‑color image resource, required parameters width and height, version compatibility notes, return values, and provides a complete example script that generates a PNG with custom text.

GDPHPbackend
0 likes · 2 min read
PHP imagecreatetruecolor Function: Creating True Color Images
Laravel Tech Community
Laravel Tech Community
Aug 14, 2021 · Backend Development

Using imagecreatefromjpeg to Load JPEG Images in PHP

This article explains the PHP imagecreatefromjpeg function, its parameters and return values, and provides a complete example that demonstrates loading a JPEG file, handling errors, creating a placeholder image, and outputting the result as a JPEG response.

Code ExampleGDJPEG
0 likes · 2 min read
Using imagecreatefromjpeg to Load JPEG Images in PHP
Laravel Tech Community
Laravel Tech Community
Aug 13, 2021 · Backend Development

Using PHP imagecreatefromgif to Load and Process GIF Images

The article explains PHP's imagecreatefromgif function, detailing its purpose, parameters, return values, and provides a complete example that loads a GIF, handles errors by generating a placeholder image, and outputs the result as a GIF, illustrating practical backend image processing.

GDGIFPHP
0 likes · 2 min read
Using PHP imagecreatefromgif to Load and Process GIF Images
Laravel Tech Community
Laravel Tech Community
Aug 12, 2021 · Backend Development

imagecreatefromgd – Create an Image from a GD File or URL (PHP)

The article explains the PHP function imagecreatefromgd, detailing its syntax, parameter, return values, and provides a complete example that loads a GD image, checks for success, processes it, saves the result, and cleans up the resource.

FunctionsGDPHP
0 likes · 2 min read
imagecreatefromgd – Create an Image from a GD File or URL (PHP)
Laravel Tech Community
Laravel Tech Community
Aug 10, 2021 · Backend Development

Creating a Palette‑Based Image with PHP's imagecreate() Function

This article explains how PHP's imagecreate() function creates a blank palette‑based image, demonstrates allocating colors, drawing text with imagestring(), outputting the image as PNG, and properly releasing resources, providing a complete code example for backend image generation.

GDPHPbackend
0 likes · 2 min read
Creating a Palette‑Based Image with PHP's imagecreate() Function
Laravel Tech Community
Laravel Tech Community
Aug 9, 2021 · Backend Development

PHP imagecopy Function: Copying a Portion of an Image

This article explains the PHP imagecopy function, showing its signature, parameters, and how it copies a rectangular region from a source image to a destination image at specified coordinates, providing a concise reference for developers working with image manipulation in backend applications.

GDPHPbackend
0 likes · 1 min read
PHP imagecopy Function: Copying a Portion of an Image
Laravel Tech Community
Laravel Tech Community
Aug 7, 2021 · Backend Development

PHP imagecolorsforindex – Retrieve RGBA Components for a Color Index

The article explains PHP’s imagecolorsforindex function, detailing its purpose, parameters, return values, and provides a complete example demonstrating how to load an image, retrieve a pixel’s color index, convert it to RGBA components, and output the result.

GDPHPimage processing
0 likes · 2 min read
PHP imagecolorsforindex – Retrieve RGBA Components for a Color Index
Laravel Tech Community
Laravel Tech Community
Aug 6, 2021 · Backend Development

PHP imagecolorresolvealpha Function: Retrieve Color Index with Alpha

The PHP GD library function imagecolorresolvealpha returns the index of a specified color with an alpha value for a given image resource, delivering either the exact index or the nearest possible alternative while detailing its parameters, return values, and usage example.

GDPHPbackend
0 likes · 2 min read
PHP imagecolorresolvealpha Function: Retrieve Color Index with Alpha
Laravel Tech Community
Laravel Tech Community
Aug 4, 2021 · Backend Development

PHP imagecolorat: Retrieve Pixel Color Index Value

The article explains PHP's imagecolorat function, which returns the RGB integer of a pixel in a true‑color image using the GD library, and shows how to extract red, green, and blue components with bitwise operations through a complete code example.

GDPHPbackend
0 likes · 2 min read
PHP imagecolorat: Retrieve Pixel Color Index Value
Laravel Tech Community
Laravel Tech Community
Aug 3, 2021 · Backend Development

Using imagecolorallocatealpha() to Allocate Colors with Alpha in PHP GD

This article explains how the PHP GD function imagecolorallocatealpha() assigns colors with transparency to an image, describes its parameters and return values, and provides a complete example that creates a PNG with overlapping circles using custom alpha values.

GDPHPbackend
0 likes · 3 min read
Using imagecolorallocatealpha() to Allocate Colors with Alpha in PHP GD
Laravel Tech Community
Laravel Tech Community
Aug 2, 2021 · Backend Development

PHP imagecolormatch Function: Matching Palette Colors to True‑Color Images

The article explains PHP's imagecolormatch function, detailing its purpose of aligning palette colors with true‑color images, outlines required parameters, return values, and provides a complete PHP example using GD library functions to demonstrate usage and cleanup.

GDPHPbackend
0 likes · 2 min read
PHP imagecolormatch Function: Matching Palette Colors to True‑Color Images
Laravel Tech Community
Laravel Tech Community
Jul 29, 2021 · Backend Development

PHP imagecolorallocate(): Allocate a Color for an Image

The PHP function imagecolorallocate() assigns a color to an image resource by specifying red, green, and blue components (0‑255 or hexadecimal), returns a color identifier or -1 on failure, and is demonstrated with example code showing how to set background, white, and black colors.

GDImagePHP
0 likes · 2 min read
PHP imagecolorallocate(): Allocate a Color for an Image