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

You Might Also Like
Gen AI apps are built with MongoDB Atlas Icon
Gen AI apps are built with MongoDB Atlas

The database for AI-powered applications.

MongoDB Atlas is the developer-friendly database used to build, scale, and run gen AI and LLM-powered apps—without needing a separate vector database. Atlas offers built-in vector search, global availability across 115+ regions, and flexible document modeling. Start building AI apps faster, all in one place.
Start Free
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