Req #52857 [Opn->Csd]: Access to gdImageSetClip() and gdImageGetClip()

From: Date: Sat, 24 Sep 2016 13:44:36 +0000
Subject: Req #52857 [Opn->Csd]: Access to gdImageSetClip() and gdImageGetClip()
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-204241@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=52857&edit=1 ID: 52857 Updated by: cmb@php.net Reported by: ljb9832 at pobox dot com Summary: Access to gdImageSetClip() and gdImageGetClip() -Status: Open +Status: Closed Type: Feature/Change Request Package: GD related Operating System: N/A PHP Version: 5.3.3 -Assigned To: +Assigned To: cmb Block user comment: N Private report: N New Comment: The PR has been merged. imagesetclip() and imagegetclip() will be available as of PHP 7.2.0. Previous Comments: ------------------------------------------------------------------------ [2016-07-23 14:16:04] cmb@php.net I've submitted a respective PR ------------------------------------------------------------------------ [2010-09-16 03:41:39] ljb9832 at pobox dot com Description: ------------ Since 2.0.12, libgd has supported a user-defined clipping rectangle using gdImageSetClip() and gdImageGetClip(). This clips all drawing operations to the specified area, and is a very useful capability. However, PHP does not expose these functions. Please consider adding a PHP function or functions to allow setting and getting the clipping boundaries. This could be two functions, imagesetclip($image, $x1, $y1, $x2, $y2) and imagegetclip($image), or a single function imageclip($image, [$x1, $y1, $x2, $y2]) which sets the clipping boundary if the arguments are provided, and returns the new or current boundary. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=52857&edit=1

« previous php.bugs (#204241) next »