Bug #16097 Updated: Imagejpeg/imagecreatefromjpeg fail to recognise resolution over 72 dpi
| From: | php-bugs at lists dot php dot net | Date: | Thu, 20 Jun 2002 05:00:07 +0000 |
| Subject: | Bug #16097 Updated: Imagejpeg/imagecreatefromjpeg fail to recognise resolution over 72 dpi | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-11494@lists.php.net to get a copy of this message | ||
ID: 16097
Updated by: php-bugs@lists.php.net
Reported By: alex.tuveri@cc.uniud.it
-Status: Feedback
+Status: No Feedback
Bug Type: GD related
Operating System: linux
PHP Version: 4.0.6
New Comment:
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
Previous Comments:
------------------------------------------------------------------------
[2002-03-15 14:50:40] sander@php.net
Can you check if this is a problem with GD or with PHP? (try one of the
test-tools GD supplies)
------------------------------------------------------------------------
[2002-03-15 08:24:26] alex.tuveri@cc.uniud.it
Using a procedure like (where the source is im_src, target is
im_target, both saved at 150 dpi):
$im_src = imagecreatefromjpeg($foto_defunto);
$im_target = imagecreatefromjpeg($foto_template);
ImageCopy ($im_target, $im_src, $foto_hpos, 10, 0, 0, $width,
$height);
$black = imagecolorclosest ($im_target,0,0,0);
ImageTTFText ($im_target, 16, 0, CANVAS_TEXT_HPOS, CANVAS_TEXT_VPOS,
-$black, "Verdana.ttf","Impresa: " . $of_name);
ImageTTFText ($im_target, 16, 0, CANVAS_TEXT_HPOS, CANVAS_TEXT_VPOS+30,
-$black, "Verdana.ttf","Nome: " . $nome_defunto);
Imagejpeg($im_target,'',100);
ImageDestroy($im_src);
ImageDestroy($im_target);
------- the problem --------
The output (through the function 'Imagejpeg') to the video (in the
example above) or in a file will be only set to 72 dpi.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=16097&edit=1