dev-master
9999999-devthumbnail
MIT
The Requires
- php >=5.3.0
- wangta69/file ^1.0
by Pondol
laravel thumbnail pondol
1.0.2
1.0.2.0thumbail
MIT
The Requires
- php >=5.3.0
- wangta69/file ^1.0
by Pondol
laravel thumbnail pondol
Wallogit.com
2017 © Pedro Peláez
thumbnail
composer require wangta69/php-thumbnail composer require "wangta69/php-thumbnail @dev"
use Pondol\Image\GetHttpImage; $img_url = 'http://www.shop-wiz.com/myphoto.jpg'; $save_path = '/home/photos'; $image = new GetHttpImage(); $image->read($img_url)->save($save_path);
=== read image from url;, (*1)
=== create blank image, (*2)
=== copy source image to destination image with croping from center, (*3)
=== copy source image to destination image, (*4)
=== save or create image, (*5)
=== change image format, (*6)
=== change image name, image name shoud be without extention, extention will be created according to image format, (*7)
use Pondol\Image\GetHttpImage; $img_url = 'http://www.shop-wiz.com/myphoto.jpg'; $save_path = '/home/photos'; $image = new GetHttpImage(); $image->read($img_url)->->set_size(100, 100)->copyimage()->save($save_path);
use Pondol\Image\GetHttpImage; $img_url = 'http://www.shop-wiz.com/myphoto.jpg'; $save_path = '/home/photos'; $image = new GetHttpImage(); $image->read($img_url)->->set_size(100, 100)->copyWithRatio()->save($save_path);
use Pondol\Image\GetHttpImage;
$img_url = 'http://www.shop-wiz.com/myphoto.jpg';
$save_path = '/home/photos';
$image = new GetHttpImage();
$image->read($img_url)->set_size(100, 100)->copyWithRatio()->format('png')->save($save_path);
use Pondol\Image\GetHttpImage;
$img_url = 'http://www.shop-wiz.com/myphoto.jpg';
$save_path = '/home/photos';
$image = new GetHttpImage();
$image->read($img_url)->set_size(100, 100)->copyWithRatio()->name('myphoto')->save($save_path);
or
$image->read($img_url)->set_size(100, 100)->copyWithRatio()->name('myphoto')->format('png')->save($save_path);
thumbnail
MIT
laravel thumbnail pondol
thumbail
MIT
laravel thumbnail pondol