Описание тега php-imagine
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.
The main purpose of Imagine is to provide all the necessary functionality to bring all native low level image processing libraries in PHP to the same simple and intuitive OO API.
Several things are necessary to accomplish that:
- Image manipulation tools, such as resize, crop, etc.
- Drawing API - to create basic shapes and advanced charts, write text on the image
- Masking functionality - ability to apply black&white or grayscale images as masks, leading to semi-transparency or absolute transparency of the image the mask is being applied to
The above tools should be the basic foundation for a more powerful set of tools that are called Filters
in Imagine.
Useful Links
- GitHub Repository
- Documentation hosted by ReadTheDocs
- Introduction to Imagine
- Imagine API