php.net |  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
Votes:4
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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
45 - 42 = ?
Subscribe to this entry?

 
 [2009-11-06 12:40 UTC] ganswijk at xs4all dot nl
Description:
------------
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.



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-12-28 12:44 UTC] jani@php.net
-Package: Feature/Change Request +Package: GD related
 [2017-01-22 23:50 UTC] cmb@php.net
-Status: Open +Status: Suspended
 [2017-01-22 23:50 UTC] cmb@php.net
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] <https://wiki.php.net/rfc/howto>
 [2021-08-25 11:58 UTC] cmb@php.net
-Status: Suspended +Status: Wont fix -Assigned To: +Assigned To: cmb
 [2021-08-25 11:58 UTC] cmb@php.net
Given the lack of further feedback and no RFC, I'm closing this as
WONTFIX.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 22:01:28 2024 UTC