Imagine is a OOP library for image manipulation built in PHP 5.3 using the latest best practices and thoughtful design that should allow for decoupled and unit-testable code. ImagineInterface (Imagine\Image\ImagineInterface) and its implementations is the main entry point into Imagine. You may think of it as a factory for Imagine\Image\ImageInterface as it is responsible for creating and opening instances of it and also for instantiating Imagine\Image\FontInterface object. The main piece of image processing functionality is concentrated in the ImageInterface implementations (one per driver - e.g. Imagick\Image). The main idea of Imagine is to avoid driver specific methods spill outside of this class and couple of other internal interfaces (Draw\DrawerInterface), so that the filters and any other image manipulations can operate on ImageInterface through its public API.

Features

  • To open an existing image, all you need is to instantiate an image factory
  • Resize an image is very easy
  • You can also specify the filter you want as second argument
  • Imagine also lets you create new, empty images
  • Images are saved given a path and optionally options
  • You can optionally specify the fill color for the new image

Project Samples

Project Activity

See All Activity >

Follow Imagine

Imagine Web Site

Other Useful Business Software
Full-stack observability with actually useful AI | Grafana Cloud Icon
Full-stack observability with actually useful AI | Grafana Cloud

Our generous forever free tier includes the full platform, including the AI Assistant, for 3 users with 10k metrics, 50GB logs, and 50GB traces.

Built on open standards like Prometheus and OpenTelemetry, Grafana Cloud includes Kubernetes Monitoring, Application Observability, Incident Response, plus the AI-powered Grafana Assistant. Get started with our generous free tier today.
Create free account
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Imagine!

Additional Project Details

Programming Language

PHP

Related Categories

PHP Object Oriented Software, PHP Image Processing Software, PHP Image Processing Libraries

Registered

2022-01-10