How do I display a dynamically resized image in Kohana without saving it?
Posted
by Ygam
on Stack Overflow
See other posts from Stack Overflow
or by Ygam
Published on 2009-07-30T06:36:15Z
Indexed on
2010/03/16
17:01 UTC
Read the original article
Hit count: 298
kohana
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
© Stack Overflow or respective owner