|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #55638 width position does not work.
Submitted: 2011-09-08 02:26 UTC Modified: 2011-09-08 07:37 UTC
From: www dot query at gmail dot com Assigned:
Status: Not a bug Package: *Graphics related
PHP Version: Irrelevant OS: Centos (Red Hat) 5.6
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: www dot query at gmail dot com
New email:
PHP Version: OS:


 [2011-09-08 02:26 UTC] www dot query at gmail dot com

When placing smaller image on top of larger image, the 'x' parameter does not work. Whatever the value the resulr is x= 0.  X is the width.

X = 0, y = 0 is the top left corner. Trying to position in the bottom right corner results in the image appearing in the bottom left corner regardless of the value of 'x' being the 3rd parameter in


The larger image is 800 wide, 450 high, JPG. The smaller image is 222 wide by 98 high and is a PNG with a transparent background.

Test script:
PIC1 = 3840 wide x 2160 high.

$picin = new Gmagick($pic1);
$height = $picin->getimageheight();

$pj = new gmagick($dir2.'pj5.png');

# 222 x 98 / 800 x 450

$pic6  = $dir2.$ref.'-000.jpg';

Expected result:
The smaller image positioned in the bottom right corner of the larger image.

Actual result:
The smaller image is position in the bottom left corner.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2011-09-08 07:37 UTC]
-Status: Open +Status: Bogus
 [2011-09-08 07:37 UTC]
Please report this issue at
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Jun 18 12:01:29 2024 UTC