[Yii Framework] A component for creating and getting the thumb image path
2010-08-23 22:30
393 查看
There may be another good way to create and get the thumb image in Yii, here is my method to do it.
1. You have to install this extension, "phpthumb", please search this extension in this website. 代码
[/code]
Have fun with Yii.
1. You have to install this extension, "phpthumb", please search this extension in this website. 代码
Yii::import("application.components.ImageThumb"); $imageThumb = new ImageThumb(); $imageOne = $imageThumb->createThumb("example.jpg", "", 580, 280); $imageTwo = $imageThumb->createThumb("example2.jpg", "s", 100, 70);
[/code]
Have fun with Yii.
相关文章推荐
- 【转】Mean Shift Code for the Edge Detection and Image SegmentatiON system
- Best Practices for Creating and Deploying HTTP Live Streaming Media for the iPhone and iPad
- Creating a Compelling UI for Windows Mobile and the Microsoft .NET Compact Framework
- Creating a Compelling UI for Windows Mobile and the Microsoft .NET Compact Framework
- SharePoint 报错: The specified file or folder name is too long. The URL path for all files and folders must be 260 characters or less
- TST-Ternary Search Tree-Creating An English Dictionary for lookup and spell checking | CracktheInterview
- Image Processing for Dummies with C# and GDI+ Part 6 - The HSL color space
- MOSS 2007 Publishing web site definition template – onet.xml – syntax for properties and getting the right content types
- How to fix the issue that GEM_HOME and/or GEM_PATH not set issue for rvm in mac version 10.12
- Kettle解析JSON错误,We MUST have the same number of values for all paths,We can not find and data with path [$.
- Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum. For example: Given the below binary tree andsum =
- faster rcnn test demo ---repaired for video input and save the image, label, score et al. into .mat format
- [React Native] Using the Image component and reusable styles
- Mean Shift Code for the Edge Detection and Image SegmentatiON system
- getting the xml for running tfsreg.exe
- 论文笔记:Show and Tell Lessons learned from the 2015 MSCOCO Image Captioning Challenge
- Searching for a valid kernel header path... The path "" is not a valid path to the ***** kernel headers. Would you like to change it? [yes]
- How to calculate the SVG Path for an arc (of a circle)
- Sharepoint 2013 安装中 Config Application Server and Web Server role for the Server 失败 (iisext.vbs)
- 6 ways to download free intraday and tick data for the U.S. stock market