https://github.com/arxeiss/resampler.php
Simple PHP class for resampling images with GD library.
https://github.com/arxeiss/resampler.php
gd-extension php resample resampling-images
Last synced: about 1 year ago
JSON representation
Simple PHP class for resampling images with GD library.
- Host: GitHub
- URL: https://github.com/arxeiss/resampler.php
- Owner: arxeiss
- License: other
- Created: 2016-09-08T13:30:37.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2025-04-05T22:47:43.000Z (about 1 year ago)
- Last Synced: 2025-04-05T23:24:40.790Z (about 1 year ago)
- Topics: gd-extension, php, resample, resampling-images
- Language: PHP
- Homepage: https://arxeiss.github.io/resampler.php/
- Size: 389 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Resampler.php
Simple PHP library for resampling images with GD extension. More on https://arxeiss.github.io/resampler.php/
### Why another library? What is so special?
* Resampler is only for resampling and never will contain drawing methods
* Counting memory usage to avoid Fatal error caused by allocating too much memory
* Support *resize*, *crop*, *rectangle* and *rotate* methods. Especially *rectangle* is missing in many other libraries
* Support auto rotation based on EXIF data
* Using cascade pattern / method chaining
* Support JPEG, PNG and GIF images. Decision is automatical based on file suffix
### Installation & requirements
Library can be installed from [Packagist](https://packagist.org/packages/resampler/resampler) and loaded with Composer
Put this line into your `composer.json` file
```
"resampler/resampler": "~2.0"
```
or execute following command
```
composer require resampler/resampler
```
#### Requirements
Library requires at least PHP 8.1 and GD and Fileinfo extensions. For PHP 5.4 use version 1.x of this library.
## Documentation and examples
More info about library, API documentation and code examples can be found on https://arxeiss.github.io/resampler.php/