Applicable environment: The CodeIgniter framework is not used, however, to introduce a fully functional image processing class CodeIgniter image processing class, you can complete the following operations to adjust the image size, create a thumbnail,
Code example of Codeigniter smart image cropping
This article describes how to use Codeigniter to intelligently crop an image. This method keeps the subject meaning of the image as much as possible. For more information, see.
CodeIgniter is a set of application development frameworks and toolkits that are used by developers of PHP Web sites.
CodeIgniter is a simple and fast PHP MVC framework. Ellislab's staff released the CodeIgniter. After many companies have tried to
This paper introduces the method of CodeIgniter to realize the intelligent cropping picture, the picture is cropped and not distorted, as far as possible to retain the meaning of the theme of the picture, the need to refer to friends.
This article provides a detailed analysis of CodeIgniter's image processing class. For more information, see
Image. php
The code is as follows:
Class Image extends Controller {Function Image (){Parent: Controller ();$ This-> load-> library
This article describes how to use Codeigniter to upload multiple files and create multiple thumbnails. For more information, see the CI framework.
This program can achieve:1. Upload 5 images at the same time2. generate two types of thumbnails at
Codeigniter uploads multiple files and creates multiple thumbnails. This program can achieve: 1. upload 5 images at the same time. 2. generate two scaling types at the same time. save them to the mysqlcontrollers: upload. php file: Copy the code as
Code for multifile Upload and thumbnails of Codeigniter
Class Upload extends Controller {
Function go (){
If (isset ($ _ POST ['go']) {
// Initialization
$ Config ['upload _ path'] = 'Album/
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.