From:             [EMAIL PROTECTED]
Operating system: linux
PHP version:      4.0.6
PHP Bug Type:     GD related
Bug description:  Imagejpeg/imagecreatefromjpeg fail to recognise resolution over 72 
dpi

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 bug report at http://bugs.php.net/?id=16097&edit=1
-- 
Fixed in CVS:        http://bugs.php.net/fix.php?id=16097&r=fixedcvs
Fixed in release:    http://bugs.php.net/fix.php?id=16097&r=alreadyfixed
Need backtrace:      http://bugs.php.net/fix.php?id=16097&r=needtrace
Try newer version:   http://bugs.php.net/fix.php?id=16097&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=16097&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=16097&r=notwrong
Not enough info:     http://bugs.php.net/fix.php?id=16097&r=notenoughinfo
Submitted twice:     http://bugs.php.net/fix.php?id=16097&r=submittedtwice

Reply via email to