PHP Classes

File: docs/output_image.md

Recommend this page to a friend!
  Classes of Chun-Sheng, Li   Selective PHP Image Manipulation   docs/output_image.md   Download  
File: docs/output_image.md
Role: Auxiliary data
Content type: text/markdown
Description: Auxiliary data
Class: Selective PHP Image Manipulation
Perform several types of image manipulation
Author: By
Last change:
Date: 1 year ago
Size: 415 bytes
 

Contents

Class file image Download

Output Image

In this sample, you can learn how to output the image file and data string.

Output image data string

$image = new Image();
$imgSrc = $image->getImage('/path/to/image.png');
$imgDataString = $image->getImageData($imgSrc, 'jpg');

Output image resource

$image = new Image();
$imgSrc = $image->getImage('/path/to/image.png');
$imgDest = $image->getImage($imgSrc, 'jpg');