Phalcon ImageThis component allows developers to manipulate image files. We can perform multiple operation on a single image file. AdaptersAdapter are used to encapsulate specific image manipulator programs. The following image manipulator programs are supported:
ImplementationOutput: Resizing ImageWe can resize image with proper ratio maintenance by using different methods. \Phalcon\Image::WIDTH It is used to change the width of the image but keeps the ratio maintains. If we specify height then it is ignored. Output: \Phalcon\Image::HEIGHT It is used to change the height of the image but keeps the ratio maintains. If we specify width then it is ignored. Output: Cropping ImageIt is used to crop the image by 200px*200px. Output: Rotating ImageIt is used to rotate throughout 360 degree as per requirement. Output: Sharpening ImageThe sharpen() method takes integer value between 0 (no effect) to 100 (very sharp). Output: Blurring ImageOutput: Next TopicPhalcon View |