From http://php.net/imagejpeg, it says you need to pass null as the second
arg if you want to skip it but need to specify the quality. An empty string
is not the same as null. Try imagejpeg($img,null,75);
-- Mon
On Wed, Jun 17, 2009 at 5:37 PM, unlex dmitr...@yandex.ru wrote:
Hi,
I have
Mon Zafra wrote:
From http://php.net/imagejpeg, it says you need to pass null as the second
arg if you want to skip it but need to specify the quality. An empty
string
is not the same as null. Try imagejpeg($img,null,75);
There is no matter what we pass in this case - '' or null. It
unlex wrote:
outside ZF. But I've tried to pass null and this had no effect.
There is no matter what we pass in this case - '' or null. It works
fine
I use a view to output an image. After creating it with gd routines, I
turn off layouts and set view-img
This is my view code
This worked for me.
function indexAction() {
// disable view and layout
Zend_Layout::getMvcInstance()-disableLayout();
$this-_helper-viewRenderer-setNoRender();
// setup realpath to image
$path_to_image = $_SERVER['DOCUMENT_ROOT'].'/images/EQ2_000192.jpg';
// set headers