Bug #16097 Updated: Imagejpeg/imagecreatefromjpeg fail to recognise resolution over 72 dpi
| From: | sander@php.net | Date: | Fri, 15 Mar 2002 19:50:40 +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-2603@lists.php.net to get a copy of this message | ||
ID: 16097
Updated by: sander@php.net
Reported By: alex.tuveri@cc.uniud.it
-Status: Open
+Status: Feedback
Bug Type: GD related
Operating System: linux
PHP Version: 4.0.6
New Comment:
Can you check if this is a problem with GD or with PHP? (try one of the
test-tools GD supplies)
Previous Comments:
------------------------------------------------------------------------
[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