ID:               16097
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-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] [EMAIL PROTECTED]

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

Reply via email to