php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #16097 Imagejpeg/imagecreatefromjpeg fail to recognise resolution over 72 dpi
Submitted: 2002-03-15 08:24 UTC Modified: 2002-06-20 01:00 UTC
Votes:5
Avg. Score:4.2 ± 1.6
Reproduced:4 of 5 (80.0%)
Same Version:0 (0.0%)
Same OS:3 (75.0%)
From: alex dot tuveri at cc dot uniud dot it Assigned:
Status: No Feedback Package: GD related
PHP Version: 4.0.6 OS: linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: alex dot tuveri at cc dot uniud dot it
New email:
PHP Version: OS:

 

 [2002-03-15 08:24 UTC] alex dot tuveri at cc dot uniud dot 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.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-03-15 14:50 UTC] 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-06-20 01:00 UTC] php-bugs at lists dot php dot net
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".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Nov 23 09:01:28 2024 UTC