Nettuts+ published my next screencast on CodeIgniter.
In lesson nine of our CodeIgniter series, we’ll build a small image gallery that allows you to upload files, and automatically create thumbnails.

Nettuts+ published my next screencast on CodeIgniter.
In lesson nine of our CodeIgniter series, we’ll build a small image gallery that allows you to upload files, and automatically create thumbnails.

This entry was posted on Sunday, February 21st, 2010 and is filed under Screencasts. You can follow any responses to this entry through RSS 2.0. You can leave a response, or trackback from your own site.
Arclite theme by digitalnature | powered by WordPress
#1 by Zack Kitzmiller on February 21st, 2010
| Quote
Are we gonna get back to the Doctrine Tuts soon?
I’m sure I speak for everyone when I saw we miss them.
#2 by Burak on February 21st, 2010
| Quote
Definitely
#3 by Drew on February 25th, 2010
| Quote
Yes, the doctrine ones!! Can you give us any idea of when the next is likely to be released and how many there will be? (I appreciate this is probably a difficult question, so sorry about that!)
#4 by FingerLing on February 28th, 2010
| Quote
2:21 – how did you do it in aptana, i can found how to make this… Thanks for reply
#5 by Drew on March 1st, 2010
| Quote
Guess that’s a no then! Keep em coming anyway
#6 by Daniel Petrie on March 21st, 2010
| Quote
Hey Burak,
I have an issue with the image gallery site I’m creating and I’m following this tut as a guide.
I am trying to resize an image twice, so I have the orginal, a smaller version, and a thumbnail version, but when I create a 2nd $config , load the library again, and call resize, it just creates a 2nd version of the the first config.? Here’s my code for that section(inside controller):
$image_data = $this->upload->data();
$config = array(
’source_image’ => $image_data['full_path'],
‘new_image’ => $this->gallery_path . ‘/thumbs’,
‘maintain_ratio’ => true,
‘width’ => 150,
‘height’ => 150
);
$this->load->library(’image_lib’, $config);
$this->image_lib->resize();
$config2 = array(
’source_image’ => $image_data['full_path'],
‘new_image’ => $this->gallery_path . ‘/large’,
‘maintain_ratio’ => true,
‘width’ => 850,
‘height’ => 650
);
$this->load->library(’image_lib’, $config2);
$this->image_lib->resize();
/** Save file in database **/
$this->gallery_model->createImageData($this->gallery_path_url, $image_data['file_name']);
return true;
/** file is uploaded **/
Any help is appreciated, thanks!
#7 by Daniel Petrie on March 23rd, 2010
| Quote
nm, I figured it out from the CI forums. For anyone else who cares, here was the solution..
$config = ….;
$this->load->library(’image_lib’);
$this->image_lib->initialize($config);
$this->image_lib->resize();
$this->image_lib->clear();
$config2 = ….;
$this->image_lib->initialize($config2);
$this->image_lib->resize();
#8 by Mr-H on April 1st, 2010
| Quote
thank you burak
you & jef-way help me a lot about learning ci
you must know that even if people don’t reply as me
but we appreciate that work