Image Manipulation Class - Resize Original AND Create Thumb??? |
[eluser]Muppit[/eluser]
According to the docs: Quote:$this->image_lib->resize() it would seem the image manipulation class won't actually resize the original image, AND create a thumbnail from it??? I've tried using various options with no success. Is this correct? In which case, I'd have to resize the image and create a thumbnail from it, then go back and resize the original without creating a thumbnail...seems like a seriously roundabout way of doing it. Is this right or am I missing the mark?
[eluser]xpix[/eluser]
I think you have to call the resize function 2 times with diffrent configurations.
[eluser]Muppit[/eluser]
Yeah that's what I've managed to work out so far, using a two step loop with diff. configs each round, I was just hoping there might be something I was missing that meant the original was resized in the process...thanks for the reply xpix
[eluser]Muppit[/eluser]
Well after much head scratching here's my solution to this problem: Code: $this->load->library('image_lib'); Seems to be the fastest way of doing things. It will iterate through twice, each time loading in the right config array, of which the first one will generate a thumb from the specified image, and the second, resize that original image. Hope it helps anyone having the same issue.
[eluser]Unknown[/eluser]
[quote author="Muppit" date="1216092518"]Well after much head scratching here's my solution to this problem: Code: $this->load->library('image_lib'); Seems to be the fastest way of doing things. It will iterate through twice, each time loading in the right config array, of which the first one will generate a thumb from the specified image, and the second, resize that original image. Hope it helps anyone having the same issue.[/quote] Thanks! Simple but efficient solution!
[eluser]Sire[/eluser]
Old topic, but thought you might be interested in this too http://www.matmoo.com/digital-dribble/co...image_moo/ |
Welcome Guest, Not a member yet? Register Sign In |