Monthly Archives: May 2009

Multiple image manipulation(resize/crop/thumb/rotate)in a single script using CI

This is really nightmare to sort out why loop operation get success only for first time. Say, with or without loop i want to resize two images in a single script. i write the resize code but when i execute … Continue reading

Posted in Code Igniter | Tagged , , , | Leave a comment

Using CI, Crop an Image

$config['image_library'] = ‘gd2′; $config['source_image'] = ‘./source/img/loc/aminul.jpg’; $config['new_image'] = ‘./dest/img/loc/new.jpg’; $config['create_thumb'] = TRUE; $config['width'] = ’300′; $config['height'] = ’300′; $config['x_axis'] = ’600′; $config['y_axis'] = ’350′; //$this->image_lib->initialize($config); $this->load->library(‘image_lib’, $config); if ( ! $this->image_lib->crop()) { echo $this->image_lib->display_errors(); } Enjoy Croping with CI

Posted in Code Igniter | Tagged , | Leave a comment

File upload in CI [Short Tip: Don't load library first]

I found an interesting thing about CI file resize functionality. To resize an image we need to load image_lib library. $this->load->library(‘image_lib’); //don’t use it But if we load this library first and assign configuration variables later then it gives the … Continue reading

Posted in Code Igniter | Tagged , , | Leave a comment

All about .htaccess

what is .htaccess? => it’s a file located at your server use for control apache activities. usually we place .htaccess file in server root but it’s also possible to locate elsewhere. moreover, .htaccess file help us to rewrite apache behavior. … Continue reading

Posted in LAMP | Tagged , , | Leave a comment

Today is special day for me

Yes!!! Today is really special day for me. It’s orientation and first class in IICT at BUET. This year i get chance at BUET in MSc in ICT. I shall become a student of BUET was my father’s dream. but … Continue reading

Posted in IICT (BUET) | Tagged , , | 17 Comments