Download the PHP package coderden/image-resizer without Composer
On this page you can find all versions of the php package coderden/image-resizer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download coderden/image-resizer
More information about coderden/image-resizer
Files in coderden/image-resizer
Download coderden/image-resizer
More information about coderden/image-resizer
Files in coderden/image-resizer
Vendor coderden
Package image-resizer
Short Description Professional PHP image resizing library with multiple driver support (GD, Imagick)
License MIT
Package image-resizer
Short Description Professional PHP image resizing library with multiple driver support (GD, Imagick)
License MIT
Please rate this library. Is it a good library?
Informations about the package image-resizer
Image Resizer
Professional PHP image resizing library with multiple driver support. Supports GD and Imagick drivers with a unified API.
Features
- Multi-driver support: Choose between GD and Imagick drivers
- Fluent API: Chainable methods for easy image manipulation
- Multiple operations: Resize, crop, rotate, watermark, aspect ratio adjustments
- Format support: JPEG, PNG, GIF, WebP
- Extensible architecture: Easy to add custom drivers
- PHP 8.1+: Modern PHP with type safety
Installation
Quick Start
Usage Examples
Basic Resizing
Cropping
Aspect Ratio
Rotation
Watermark
Driver Selection
Getting Image Data
Static Helper Usage
The package includes a static helper class Resizer for quick and easy image processing.
Basic Static Usage
Quick Helper Methods
Batch Processing
Driver Configuration
Advanced Usage
Custom Driver
Error Handling
API Reference
ImageProcessor Methods
driver(?string $driver = null): DriverInterface- Get driver instancegetDefaultDriver(): string- Get default driver nameextend(string $name, callable $callback): void- Register custom driver
Driver Methods
All methods return $this for chaining except where noted.
load(string|resource $source): self- Load image from file or resourceresize(?int $width = null, ?int $height = null): self- Resize imagecrop(int $width, int $height, ?int $x = null, ?int $y = null): self- Crop imageaspectRatio(float $ratio, string $position = 'center'): self- Crop to aspect ratiorotate(float $angle): self- Rotate imagewatermark(string $watermarkPath, string $position = 'bottom-right', int $opacity = 100): self- Add watermarksave(string $path, int $quality = 90, ?string $format = null): bool- Save to fileget(?string $format = null, int $quality = 90): string- Get as binary stringgetDimensions(): array- Get image dimensionsdestroy(): void- Free resources
Requirements
- PHP 8.1 or higher
- GD extension (required)
- Imagick extension (optional, for Imagick driver)
All versions of image-resizer with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.1
ext-gd Version *
ext-gd Version *
The package coderden/image-resizer contains the following files
Loading the files please wait ...