PHP Classes

Save and Convert Images: Retrieve remote images and convert formats

Recommend this page to a friend!
  Info   Documentation   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 68%Total: 174 All time: 8,789 This week: 488Up
Version License PHP version Categories
save-and-convert-img 1.0.1Artistic License5PHP 5, Graphics, Files and Folders
Description 

Author

This class can retrieve remote images and convert formats.

It can retrieve an image file of any format from a given URL and converts it to another format.

Currently it can convert between formats:

PNG to JPG
PNG to GIF
GIF to JPG
GIF to PNG
JPG to GIF
JPG to PNG

Picture of Juan Chaves
  Performance   Level  
Name: Juan Chaves <contact>
Classes: 13 packages by
Country: Spain Spain
Innovation award
Innovation award
Nominee: 4x

Documentation

Save-And-Convert-Img-PHP

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

Example:

$load= new SaveAndConvertImg(); //path to save the image. do not put the last slash $load->patch = './img'; //copy image source path $load->url = 'https://www.google.es/images/branding/googlelogo/1x/googlelogo_color_272x92dp.png'; //name of the copy $load->name = 'logo_google'; //type of image to convert - jpg gif png $load->convert = 'jpg'; echo $load->ReturnImage(); </pre>


  Files folder image Files (2)  
File Role Description
Accessible without login Plain text file README.md Doc. Documentation
Plain text file save_and_convert_img_class.php Class Class source

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:174
This week:0
All time:8,789
This week:488Up
User Ratings User Comments (1)
 All time
Utility:100%StarStarStarStarStarStar
Consistency:91%StarStarStarStarStar
Documentation:91%StarStarStarStarStar
Examples:-
Tests:-
Videos:-
Overall:68%StarStarStarStar
Rank:416
 
Nice.
7 years ago (Alekos Psimikakis)
70%StarStarStarStar