PHP Classes


Recommend this page to a friend!
  Classes of Juan Chaves   Save and Convert Images   Download  
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: Save and Convert Images
Retrieve remote images and convert formats
Author: By
Last change: Add format
Add help Readme
Date: 5 years ago
Size: 614 bytes


Class file image Download


Is a class to save remote images, and change the type of image. Download and convert at the same time a remote file, convert: <pre> PNG to JPG PNG to GIF GIF to JPG GIF to PNG JPG to GIF JPG to PNG


$load= new SaveAndConvertImg(); //path to save the image. do not put the last slash $load->patch = './img'; //copy image source path $load->url = ''; //name of the copy $load->name = 'logo_google'; //type of image to convert - jpg gif png $load->convert = 'jpg'; echo $load->ReturnImage(); </pre>