Welcome Guest, Not a member yet? Register   Sign In
Need image library which will resize image when display image on my view page!
#1

[eluser]shahriat[/eluser]
Hi, have any image manipulation library which will resize my image when image displaying on my view page?
#2

[eluser]TheFuzzy0ne[/eluser]
Why on earth would you want to resize on-the-fly when images are being displayed? Why not resize the images first, and be done with it? Another solution may be to set the height and width attributes of the img tags when your output the HTML.
#3

[eluser]shahriat[/eluser]
Ya i can resize image when uploading but i don't want it because i have three type of image like thumb medium and big to make but if i make it when uploading then space needed more this is one of the reasons. Do u have any suggestion so that i can resize the image on the fly?
#4

[eluser]TheFuzzy0ne[/eluser]
Yes, as I said. You could store the larger image on your server, and the dimensions in your database, and then scale the image down accordingly using the height and width attributes of the img tag. This isn't the normal way to do things, but it should be less resource intensive.
#6

[eluser]shahriat[/eluser]
But i want to maintain the ratio also thats why i want it the library on the fly. Like this one http://www.sitepoint.com/article/image-resizing-php/.

I can use this but problem is i want the image height and width fix. But it don't do that at all. Please give me some idea to go to my requirement.

--
Thanx
#7

[eluser]pistolPete[/eluser]
[quote author="shahriat" date="1236895436"]But i want to maintain the ratio also thats why i want it the library on the fly.[/quote]

I don't see a connection between maintaining an image ratio and resizing on the fly...

Read through the user guide: http://ellislab.com/codeigniter/user-gui...e_lib.html

Have a look at:
Code:
$config['maintain_ratio'] = TRUE;




Theme © iAndrew 2016 - Forum software by © MyBB