Bug #63920 [Com]: imagejpeg
| From: | gnikoloudis dot com at gmail dot com | Date: | Wed, 10 Jun 2015 17:01:42 +0000 |
| Subject: | Bug #63920 [Com]: imagejpeg | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-193312@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=63920&edit=1
ID: 63920
Comment by: gnikoloudis dot com at gmail dot com
Reported by: zebroid at list dot ru
Summary: imagejpeg
Status: Not a bug
Type: Bug
Package: GD related
Operating System: debian 6.0
PHP Version: 5.4.10
Block user comment: N
Private report: N
New Comment:
Thanks for the feedback and resolution
Previous Comments:
------------------------------------------------------------------------
[2013-01-08 06:48:20] pajoye@php.net
We can't change that. It is part of the parameter parsing API. Simply use NULL
which is actually what should have been used.
------------------------------------------------------------------------
[2013-01-08 06:42:33] zebroid at list dot ru
pajoye@php.net, can you read my first post at 2013-01-06 17:04 UTC?
------------------------------------------------------------------------
[2013-01-07 18:09:33] pajoye@php.net
the "" is the problem I suppose, use NULL if you don't want to save it but output
it directly.
------------------------------------------------------------------------
[2013-01-07 17:09:05] zebroid at list dot ru
hm... well, it something like this
<?php
$jpeg_filename = "http://php.net/manual/en/images/21009b70229598c6a80eef8b45bf282b-imagecreatefromjpeg.jpg";
//or link to any local jpeg file
$jpeg_quality = 90;
$img = imagecreatefromjpeg($jpeg_filename);
header('Content-Type: image/jpeg');
//next line dont work in php 5.4, but work in php 5.3
imagejpeg($img, '', $jpeg_quality);
?>
------------------------------------------------------------------------
[2013-01-07 06:16:32] pajoye@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves.
A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external
resources such as databases, etc. If the script requires a
database to demonstrate the issue, please make sure it creates
all necessary tables, stored procedures etc.
Please avoid embedding huge scripts into the report.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=63920
--
Edit this bug report at https://bugs.php.net/bug.php?id=63920&edit=1