# php-imagine/Imagine

PHP Object Oriented image manipulation library

Repository: https://github.com/php-imagine/Imagine
Canonical: https://ross.abutalabs.com/products/imagine
Homepage: https://imagine.readthedocs.io
Language: PHP
License: NOASSERTION
License Family: other
Last push: 2026-06-04T10:07:06+00:00

## Health v2 (maintenance only)
Score: 89/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 85, release rhythm 87, longevity 100
- inputs: {"age_days": 5949, "days_push": 90, "days_rel": 90, "gap_med": 30, "n_releases_24m": 6}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 4471, forks 528 (observed 2026-08-28T04:08:50.968312+00:00)

## What it is
Imagine is an object-oriented image manipulation library for PHP, inspired by Python's PIL. It provides a unified API over GD2, Imagick, and Gmagick for resizing, cropping, drawing, masking, and applying filters to images.

## Use cases
- resize and crop images in php
- generate thumbnails with php
- unified api over gd and imagemagick in php
- draw shapes and write text on images in php
- apply image masks for transparency
- auto-rotate images based on exif data

## When to choose
- you need a consistent OO image API across multiple PHP image drivers
- you want drawing, masking, and manipulation without touching driver-specific code
- your project runs on PHP 7.1+ and uses composer

## When to avoid
- you need cutting-edge image processing like deep-learning-based enhancement
- you work outside PHP
- you only need a single driver and prefer its native API directly

## Facets
- artifact type: library
- maturity: stable
- function: image-processing
- domain: image-processing, web-development
- platform: php
- tags: gd, imagemagick, imagick, gmagick, thumbnails, drawing, masking, object-oriented-api

## Member repositories
- php-imagine/Imagine (main) score 89

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:50.968312+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:20:36.481364+00:00, confidence not recorded.
  - readme: https://github.com/php-imagine/Imagine (fetched 2026-08-28T04:08:50.968312+00:00, sha 58c52c184ce4)
- Data as of 2026-08-30T08:39:29.467469+00:00.
