image resize in runtime with codeigniter(php) -


I uploaded a picture with resolution of 1600x1200, I made 60x60 and 200x200 users to create thumbnails and upload again How Can I Show Without In codeIngniter (such as phpthumb library)

Codenator comes with your image library Resize this example from the document, just edit the $ config variable:

  $ config ['image_library'] = 'gd2'; $ Config ['source_image'] = '/path/to/image/mypic.jpg'; $ Config ['new_image'] = '/path/to/new/image.jpg'; $ Config ['maintain_ratio'] = true; $ Config ['width'] = 75; $ Config ['height'] = 50; $ This- & gt; Load-> Library ('image_lib', $ config); $ This- & gt; Image_lib- & gt; Resize ();  

You can also create thumbnails dynamically (without saving them to the hard drive) so much memory is required, so I will discourage it.

Image class can also crop the image if you need it I'm currently working in it to make thumbnails in the application ...

Go to documentation :


Comments

Popular posts from this blog

paypal - How to know the URL referrer in PHP? -

oauth - Facebook OAuth2 Logout does not remove fb_ cookie -

wpf - Line breaks and indenting for the XAML of a saved FlowDocument? -