Recommend this page to a friend! |
![]() ![]() |
Info | ![]() |
![]() ![]() |
Reputation | Support forum | Blog | Links |
Ratings | Unique User Downloads | Download Rankings | ||||
Not yet rated by the users | Total: 653 | All time: 4,858 This week: 254![]() |
Version | License | PHP version | Categories | |||
image-saver 0.0.1 | MIT/X Consortium ... | 5 | PHP 5, Graphics, Files and Folders |
Description | Author | |||||||||||||||||||||||
This class can resize an image keeping the size proportions. |
|
ImageSaver ========== version 0.0.1 Created by [Amir Hoseinian](https://www.amirhoseinian.com) Introduction ----------------- this small class is built for - saving post images from html form in file system - resizing images before saving them Resizing -------- - By width resize(xxx,'auto') - By height resize('auto',xxx) - By both resize(xxx,xxx) Usage ----- <?php define('APPLICATION_PATH', __DIR__); $imageSaver = new ImageSaver(); $imageSaver->allowFileTypes = array("jpg","jpeg"); //defining allowed file types if(isset($_FILES['image'])){ $imageSaver->setImage($_FILES['image'])->setName('test')->setPath("\images\\")->resize('auto',300)->save(); } |
![]() |
File | Role | Description | ||
---|---|---|---|---|
![]() |
||||
![]() |
Class | |||
![]() ![]() |
Doc. | Documentation |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.
Related pages |
blog tutorial blog tutorial of the class |