9951 explained code solutions for 126 technologies


php-gdHow to open JPG image


$file = 'test.jpg';
$im = imagecreatefromjpeg($file);

# ...ctrl + c
$file

image path to open

$im

image resource to manipulate using GD lib

imagecreatefromjpeg

creates GD image object from given PNG image