|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #50100 Proposal to add arguments to imagegrabscreen()
Submitted: 2009-11-06 12:40 UTC Modified: 2021-08-25 11:58 UTC
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: ganswijk at xs4all dot nl Assigned: cmb (profile)
Status: Wont fix Package: GD related
PHP Version: 5.2.11 OS: Windows
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: ganswijk at xs4all dot nl
New email:
PHP Version: OS:


 [2009-11-06 12:40 UTC] ganswijk at xs4all dot nl
Could you add optional arguments to imagegrabscreen()?

I propose:
imagegrabscreen(int posx, posy, sizex, sizey);

This would enable grabbing only part of the screen.

The purpose is to make the function faster. I have a 1920x1200 screen and it takes 1 to 2 seconds and I only need to grab a small part of the screen.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2010-12-28 12:44 UTC]
-Package: Feature/Change Request +Package: GD related
 [2017-01-22 23:50 UTC]
-Status: Open +Status: Suspended
 [2017-01-22 23:50 UTC]
In my opinion, this feature request requires the RFC process[1],
thus suspending this ticket.

Personally, I'm opposed to extend the capabilities of
imagegrabscreen(), and imagegrabwindow(), for that matter, because
neither is portable.

[1] <>
 [2021-08-25 11:58 UTC]
-Status: Suspended +Status: Wont fix -Assigned To: +Assigned To: cmb
 [2021-08-25 11:58 UTC]
Given the lack of further feedback and no RFC, I'm closing this as
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Sat Sep 30 17:01:24 2023 UTC