osflab / image
OSF image manipulator
Installs: 4
Dependents: 0
Suggesters: 1
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/osflab/image
Requires
- php: ^7.1.0
- ext-imagick: *
- osflab/container: ~3.0.0
- osflab/exception: ~3.0.0
Requires (Dev)
- osflab/test: ~3.0.0
Suggests
- osflab/application: ~3.0.0
- osflab/log: ~3.0.0
This package is not auto-updated.
Last update: 2025-09-28 11:03:35 UTC
README
Picture manipulation and detection of dominant colors.
Installation
You need at least php 7.1 and composer
:
sudo apt install composer
In your application via composer
This is the recommended way to use this feature in a non-osf project.
Just add osflab/image
in your composer.json file.
From github
To test the component or participate in its development.
git clone https://github.com/osflab/image.git cd image && composer update
Unit tests launch:
vendor/bin/runtests
Usage example
$dominantColors = \Osf\Image\ImageHelper::getColors('mypic.png');