I have a problem with resize function in GD library. My code which create thumbnail:
$thumbnail = new \Phalcon\Image\Adapter\GD($path); $thumbnail->resize(300, 180)->save($pathThumbnail);
It doesn't create identical image(300, 180). It looks like this function only decreases image and if is it smaller image it doesn't increases to specified size in parameters.
What am I doing wrong?
Please, help me.
Post fixed. Please read the Markdown FAQ for properly formatting code.