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
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
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