Skip to content

Commit 31ac674

Browse files
committed
update readme with crop thumbs function
1 parent c535283 commit 31ac674

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

readme.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,22 @@ or
4646
* Custimize your upload file name
4747

4848
$file = $fa->save(\Input::file('image'), 'custimized_filename'); // => custimized_filename.jpg
49-
49+
50+
### Save thumbnails
51+
52+
* By default will set three thumbs(equal scaling)
53+
54+
$file = $fa->save(\Input::file('image'));
55+
56+
* Set custom thumb sizes
57+
58+
$file = $fa
59+
->thumbs(['S' => '150x100', 'M' => '300x200', 'L' => '450x300'])
60+
->save(\Input::file('image'));
61+
62+
* make cropped thumbs
63+
64+
$file = $fa->crop()->save(\Input::file('image'));
5065

5166
### Get file fullpath (abstract path from Laravel Storage)
5267

0 commit comments

Comments
 (0)