Hey,
In my continuous effort to create a browser-based RDP between by iPhone (recieve+control) and my Ubuntu box (capture+serve), I took a look at using streamed GIFs. Unfortunately it didn’t work because Safari Mini doesn’t display the GIF until it’s fully loaded.
Try the linked file out on a linux box using Firefox (Chrome is a bit iffy) and be amazed at yet another thing that PHP can do that it REALLY wasn’t designed for.
Requirements to run:
- “scrot” program (sudo apt-get install scrot)
- Apache user has access to X-server (change to your main user and restart apache, basically)
- directory script is in is writable
On a side note, the method used for capping/resizing/converting the image is the FASTEST way that I have found to do this at under 400ms on my machine. If you know a faster PLEASE let me know!