Register - Login
Views: 99870223
Main - Memberlist - Active users - Calendar - Wiki - IRC Chat - Online users
Ranks - Rules/FAQ - Stats - Latest Posts - Color Chart - Smilies
05-04-22 06:52:10 PM
Jul - Computers and Technology - PHP imagegrabscreen() New poll - New thread - New reply
Next newer thread | Next older thread
Rena
I had one (1) message in Discord deleted and proceeded to make a huge, huge mess about how it was a violation of free speech and how moderators are supposed to be spam janitors and nobody should have the right to tell me not to talk about school shootings
Level: 135


Posts: 1110/5390
EXP: 29079572
For next: 255433

Since: 07-22-07

Pronouns: he/him/whatever
From: RSP Segment 6

Since last post: 343 days
Last activity: 343 days

Posted on 09-25-07 08:02:31 PM; last edit by HyperHacker on 09-25-07 08:03 PM Link | Quote
JL2 - Post #1110 - 09-25-07 03:02:31 PM
Day 65, rank 8; Level 36 (66.7%)
18785/28174 (298721/308110)
GPP: 403; GT: 37.743
<?php
ini_set('memory_limit', '32M'); //these images take up a lot of memory
$img = imagegrabscreen();
if(imagejpeg($img, 'ss.jpg'))
echo '<img src="ss.jpg" />';
else echo 'SS failed';
imagedestroy($img);
?>


Any idea why this gets me a 1680x1050 black box? (Not to mention it only grabs one monitor...) I've tried outputting directly instead of to a file too.

____________________
Xkeeper

Level: 263


Posts: 3770/25353
EXP: 297181952
For next: 1778501

Since: 07-03-07

Pronouns: they/them/????????

Since last post: 4 days
Last activity: 7 hours

Posted on 11-30-07 06:30:52 PM Link | Quote
It might be a better idea to consider using something external (like Irfanview) to take screenshots every x, then using PHP to open it and do whatever.

grabscreen is much, much, much slower.

____________________
Rena
I had one (1) message in Discord deleted and proceeded to make a huge, huge mess about how it was a violation of free speech and how moderators are supposed to be spam janitors and nobody should have the right to tell me not to talk about school shootings
Level: 135


Posts: 1663/5390
EXP: 29079572
For next: 255433

Since: 07-22-07

Pronouns: he/him/whatever
From: RSP Segment 6

Since last post: 343 days
Last activity: 343 days

Posted on 11-30-07 06:32:04 PM Link | Quote
JL2 - Post #1663 - 11-30-07 01:32:04pm
Yeah, I came up with another method. This was quite an old thread.

____________________
Xkeeper

Level: 263


Posts: 3771/25353
EXP: 297181952
For next: 1778501

Since: 07-03-07

Pronouns: they/them/????????

Since last post: 4 days
Last activity: 7 hours

Posted on 11-30-07 06:33:05 PM Link | Quote
Haha, shows how mch I need to get on that last post date fixing page...

Out of curioisity though, how was it done?

____________________
Rena
I had one (1) message in Discord deleted and proceeded to make a huge, huge mess about how it was a violation of free speech and how moderators are supposed to be spam janitors and nobody should have the right to tell me not to talk about school shootings
Level: 135


Posts: 1666/5390
EXP: 29079572
For next: 255433

Since: 07-22-07

Pronouns: he/him/whatever
From: RSP Segment 6

Since last post: 343 days
Last activity: 343 days

Posted on 12-01-07 02:13:28 AM Link | Quote
JL2 - Post #1666 - 11-30-07 09:13:28pm
I ended up having to write a screen capture app anyway, so I just call that.

____________________
Deleted User
Collection of nobodies
Posted on 12-01-07 02:14:47 AM Link | Quote
Originally posted by HyperHacker
I ended up having to write a screen capture app anyway, so I just call that.

[20:13:31] <hydrapheetz> FUCK YOU HYPERHACKER

[20:13:35] <hydrapheetz> I WANTED THE 40000th ID!



____________________


===================
[Posted by NightKev]
Rena
I had one (1) message in Discord deleted and proceeded to make a huge, huge mess about how it was a violation of free speech and how moderators are supposed to be spam janitors and nobody should have the right to tell me not to talk about school shootings
Level: 135


Posts: 1667/5390
EXP: 29079572
For next: 255433

Since: 07-22-07

Pronouns: he/him/whatever
From: RSP Segment 6

Since last post: 343 days
Last activity: 343 days

Posted on 12-01-07 02:16:00 AM Link | Quote
JL2 - Post #1667 - 11-30-07 09:16:00pm
Next newer thread | Next older thread
Jul - Computers and Technology - PHP imagegrabscreen() New poll - New thread - New reply


Rusted Logic

Acmlmboard - commit 47be4dc [2021-08-23]
©2000-2022 Acmlm, Xkeeper, Kaito Sinclaire, et al.

25 database queries.
Query execution time: 0.089524 seconds
Script execution time: 0.020881 seconds
Total render time: 0.110405 seconds