Questions tagged [php-imagine]

Image manipulation library for PHP 5.3 inspired by Python's PIL and other image libraries.

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

52 questions
0
votes
0 answers

Symfony2: Amazon S3 retrieve image and mofidy using Imagine

I'm using amazon s3 to store my images. For now I've got 3 different folders - temporary one to not accepted pictures, one for accepted and one for watermarked one. When photo is being accepted it is copied to accepted and watermarked folders and…
0
votes
2 answers

Error using Imagine\Image to watermark images

I am trying to watermark images using the Imagine library (on a CakePHP project). Cropping images works fine - watermarking does not. I use the example from the Imagine website: $imagine = new Imagine\Gd\Imagine(); $watermark =…
olli
  • 3
  • 6
0
votes
1 answer

How to generate thumbnail from a uploaded video using Imagine’s library

How to generate thumbnail from a uploaded video using Imagine’s library. i want to generate thumb when i upload a video from backend. i m using sonata media bundle. they are using imagine library from generating thumbnails.
Aman Varshney
  • 820
  • 1
  • 9
  • 26
0
votes
1 answer

Image manipulating. How to speed up performance

Im using REST API to get products from store, there is around ~3k records. Unfortunately I need create thumbnails of products myself. To do this I use Imagine library for PHP. After I insert/update products to database in next task I select from…
user1409508
  • 623
  • 1
  • 12
  • 38
0
votes
0 answers

Imagine with Yii, issue with palette / color

I installed Yii and Imagine with composer and tried to use imagine. the issue is when i try to use this code from the imagine website introduction i got an error 500 : Argument 2 passed to Imagine\Gd\Imagine::create() must be an instance of…
Oneyed
  • 1
-1
votes
1 answer

How to compress an image to 200Kb using PHP

In my yii2 project, I have image compression code. I want to compress images of any size to 200kb. I am using Yii2 imagine extension for compressing the image. My code is Image::thumbnail($uploadPath . '/' . $file->name,$newwidth, $newheight) …
-2
votes
2 answers

Plugin cakephp-imagine-plugin

I working with cakephp 3.0.x-dev and I would like to use the plugin cakephp-imagine-plugin ( https://github.com/burzum/cakephp-imagine-plugin/tree/3.0 ). When I use this plugin I get the following error in my cakephp view Error: Imagick not…
Snnopy_87
  • 271
  • 1
  • 3
  • 11
1 2 3
4