Create different size images in php code igniter |
[eluser]Sawariya[/eluser]
how can create an image in different size anybody can help me.. thanks in advance
[eluser]Sarfaraz Momin[/eluser]
Hi, You can use the image library to manipulate the images. Some examples extracted from the user guide are given below. <<< create thumb >>> Code: $img_cfg_thumb['source_image'] = '/image/abc.jpg'; <<< Resize >>> Code: $img_cfg_thumb['source_image'] = '/image/abc.jpg'; Good Day !!!
[eluser]metaltapimenye[/eluser]
sweet concept.. both of them have a same size? Code: $img_cfg_thumb['width'] = 300;
[eluser]Sawariya[/eluser]
Thank you hai dear friend this code i already tried.. this will be created same size of images.... i want different size of images..
[eluser]Chris Newton[/eluser]
So... set the width & height to different numbers. Am I missing something?
[eluser]Sawariya[/eluser]
where i want set the width & height to different numbers? can you specify..?
[eluser]gunter[/eluser]
Sawariya, just look to the code... the answer is so simple - it´s a shame... :red:
[eluser]oracledarren[/eluser]
I would use a variable eg. Code: $mywidth = 100; You can alter the values according to your requirement. Code: $img_cfg_thumb['width'] = $mywidth;
[eluser]Unknown[/eluser]
Thank you, Sarfaraz Momin for example! BTW, example in User Guide is not working: Image Manipulation Class. |
Welcome Guest, Not a member yet? Register Sign In |