首页
开发手册
应用中心
工具
用户中心
FoundPHP Photo:Spin
English
中文简体
English
上一篇
下一篇
#FoundPHP Photo:Spin `FoundPHP_image is integrated by default under the framework to support rotation formats: jpg, jpeg, png, gif (static image)` `application library address:class/image/resize.php` `Using GD library php, the default memory_limit is 128M, if you need to process large-size photos, modify it above 512M.` | angle |direction | | ------------ | ------------ | | -1 | auto-rotate (only support mobile phone, camera to take photos) | | 90 | rotate 90 degrees clockwise | | -90 | rotate 90 degrees counterclockwise | | 180 | rotate 180 degrees clockwise|
**legend:** ![](data/files/edit/20/05/03/200503_00152031.jpg) ###Zoom the photo to center and fill the background color. ```php //photo rotation angle $angle = 90; //photo rotation $FoundPHP_image->trun('foundphp.jpg','foundphp90.jpg',$angle); ``` achieve effect: ![](data/files/edit/20/09/22/200922_22117321.jpg)