Copy and resized the specific part of an image
Saturday, 30 April 2016
imagecopyresized PHP GD Function
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
imagecreatefromjpeg PHP GD Function
Create a new image from a url or uploaded by file control
syntax:
resource imagecreatefromjpeg ( string $filename )Argument Detail:
filename Path to the JPEG image.Return Values :
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
imagecreatetruecolor PHP GD Function
The imagecreatetruecolor () function is used in PHP to create a new true color image using the GD Library.
resource imagecreatetruecolor ( int $width , int $height )
width
Image width for creating
height
Image height for creating
resource imagecreatetruecolor ( int $width , int $height )
width
Image width for creating
height
Image height for creating
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
getimagesize PHP Function
Get the size of an image
array getimagesize ( string $filename [, array &$imageinfo ] )
The getimagesize() function will determine the size of any given image file and return the dimensions along with the file type and a height/width text string to be used inside a normal HTML IMG tag and the correspondent HTTP content type.
list($width, $height) = getimagesize($_FILES['file']['tmp_name']);
echo $width;
echo $height;
array getimagesize ( string $filename [, array &$imageinfo ] )
The getimagesize() function will determine the size of any given image file and return the dimensions along with the file type and a height/width text string to be used inside a normal HTML IMG tag and the correspondent HTTP content type.
list($width, $height) = getimagesize($_FILES['file']['tmp_name']);
echo $width;
echo $height;
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Subscribe to:
Posts (Atom)