ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

fun bit of code (cool hack)

August 17, 2010 5:15am

Subscribe [1]
  • #1 / Aug 17, 2010 5:15am

    richthegeek

    242 posts

    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!


    http://pastie.org/1097222

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases