Download the PHP package dotxdd/coloring-book without Composer
On this page you can find all versions of the php package dotxdd/coloring-book. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download dotxdd/coloring-book
More information about dotxdd/coloring-book
Files in dotxdd/coloring-book
Download dotxdd/coloring-book
More information about dotxdd/coloring-book
Files in dotxdd/coloring-book
Vendor dotxdd
Package coloring-book
Short Description PHP library for generating coloring book pages from images
License MIT
Package coloring-book
Short Description PHP library for generating coloring book pages from images
License MIT
Please rate this library. Is it a good library?
Informations about the package coloring-book
Coloring Book Generator
PHP library for generating coloring book pages from images.
Installation
Basic Usage
Advanced Usage
Laravel Console Command Example
Here's how to use the library in a Laravel console command with advanced configuration:
Command Line Usage
Configuration Parameters
| Parameter | Default | Range | Description |
|---|---|---|---|
threshold |
30 | 1-100 | Contour detection sensitivity |
colors |
30 | 10-50 | Maximum number of colors to extract |
blur |
4 | 1-10 | Blur radius for smoothing |
minarea |
0.015 | 0.001-0.1 | Minimum area percentage for merging regions |
Output Files
The library generates two types of output files:
- Image file (PNG) - The coloring book page with outlines
- JSON file - Color palette with RGB values for each region
Example JSON output:
Features
- Convert any image to a coloring book page
- Edge detection and outline generation
- Support for various image formats (JPG, PNG, GIF)
- Customizable output settings
- High-quality output suitable for printing
- Color palette extraction and export
- Advanced contour detection with adjustable threshold
- Region merging with configurable minimum area
- Blur and smoothing options for better results
Requirements
- PHP 8.2 or higher
- GD extension enabled
License
This project is licensed under the MIT License - see the LICENSE file for details.
Contributing
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
Changelog
See CHANGELOG.md for a list of changes.
All versions of coloring-book with dependencies
PHP Build Version
Package Version
The package dotxdd/coloring-book contains the following files
Loading the files please wait ...