How do I display a dynamically resized image in Kohana without saving it?
- by Ygam
I have an image path string stored in a database
It goes like: img/uploads/imagename.jpg
I have a controller:
$this->image = new Image($wines->image)
//this is assuming that I have a wines table with the image property
$this->image->resize(60, 250, Image::AUTO)
echo $this->image->render();
//the problem is nothing is rendered
//Is there a better way of doing this? the image path that I am passing at the Image object //instantiation is the result of a query