Node.js Image Upload, Processing and Resizing using Sharp package
Often in our web applications, we need to store multiple forms and formats of images, in the form of a profile picture or an image for a product in an e-commerce prototype. In most of our cases, we need to store images compressed to multiple sizes, retaining the quality. For example, for a product at an e-commerce site, we would require storing 3 versions of a product image:...
read more
PHP | imagecrop() Function
The imagecrop() function is an inbuilt function in PHP which is used to crop an image to the given rectangle. This function crops an image to the given rectangular area and returns the resulting image. The given image is not modified....
read more
PHP | imagecopymerge() Function
The imagecopymerge() function is an inbuilt function in PHP that is used to copy and merge the image into a single image. This function returns True on success or False on failure....
read more
Node.js Jimp
Jimp is a node module used to do image processing which is provided by the npm installer. The Jimp – Javascript Image Manipulation Program is a library written entirely in JavaScript for Node, without any external or native dependencies. Various Image manipulation options available in this library are blit, blur, color, contain, and many more.Image types supported by Jimp :...
read more
PHP | imagecreatetruecolor() Function
The imagecreatetruecolor() function is an inbuilt function in PHP which is used to create a new true-color image. This function returns a blank image of the given size....
read more
PHP | imagecolortransparent() Function
The imagecolortransparent() function is an inbuilt function in PHP which is used to define color as transparent. It sets the color of a transparent image. It returns the identifier of the new transparent color. If an image has no transparent color and color not specified then it returns -1....
read more
Node Jimp | resize
The resize() function is an inbuilt function in Nodejs | Jimp which resizes the image to a set width and height using a 2-pass bilinear algorithm....
read more
PHP | imagecopy() Function
The imagecopy() function is an inbuilt function in PHP which is used to copy the image or part of image. This function returns true on success or false on failure....
read more
PHP | imagefilledrectangle() Function
The imagefilledrectangle() function is an inbuilt function in PHP which is used to create a filled rectangle. This function creates a rectangle filled with a given color in the image. The top left corner of the image is (0, 0)....
read more
Node Jimp | rotate
The rotate() function is an inbuilt function in Nodejs | Jimp that rotates the image clockwise and the dimensions of the image remain the same....
read more
PHP | ImagickDraw setStrokeColor() Function
The ImagickDraw::setStrokeColor() function is an inbuilt function in PHP which is used to set the color used for stroking object outlines....
read more
PHP | imagegif() Function
The imagegif() function is an inbuilt function in PHP which is used to create the GIF image file from the given image. If the image has been made transparent with imagecolortransparent() function, then GIF89a image format will generate otherwise GIF87a image format will generate. Syntax:...
read more