Image resizeing |
[eluser]rcoder[/eluser]
How to resize image which was fatch from DB?? Code: $image_data = $this->db->get_where('idb_products', array('i_prod_id' => $id)); Please help me to write image resize code...
[eluser]pistolPete[/eluser]
What are you storing in your database, just a filename or binary BLOB data?
[eluser]rcoder[/eluser]
[quote author="pistolPete" date="1234500735"]What are you storing in your database, just a filename or binary BLOB data?[/quote] As a Binary BLOB data
[eluser]pistolPete[/eluser]
You have to subclass CI_Image_lib and rewrite the following functions (assuming you are using GD): Code: function image_process_gd($action = 'resize') In your own image manipulation functions, you have to use imagecreatefromstring() to create an image from the database. But I recommend storing the images as "real" files on your harddrive and insert just the filenames into the database! |
Welcome Guest, Not a member yet? Register Sign In |