Results 1 to 3 of 3

Thread: php (trim and join jpgs) : (plot data)

  1. #1
    Join Date
    Feb 2006
    Posts
    228
    Thanks
    7
    Thanked 3 Times in 3 Posts

    Default php (trim and join jpgs) : (plot data)

    Hi All,

    I have a load of time stamped collected data as jpgs. Is there a way to trim off the left and/or right sides of a set of jpgs and join them together in php so that the server can serve up a linear graph/chart composed of the selected data range?

    The other way, I would have to determine which files are needed, append these files (tab delimited in ASCII), strip out unwanted text and html code, decode the time stamps, then select needed data lines, put only specific selected data columns into arrays from multiple files and find a way to plot this in various colors, then display. I suppose this is the most versatile approach, but the graphing is not something I know how to do either.....

  2. #2
    Join Date
    Feb 2006
    Posts
    228
    Thanks
    7
    Thanked 3 Times in 3 Posts

    Default

    I think I found my own answer this time. Found a free (at least for me) Object-Oriented Graph creating library for PHP >= 4.3.1 and a version for >= 5.1 called JpGraph at http://www.aditus.nu/jpgraph/index.php that apparently provides all the tools to generate almost any kind, size and quality of graph or plot from data (file, array, mysql db or excel db) that you could ever imagine. A simple plot of an array can be made with only six lines of code. The output is directed to the http page, file or pdf page, provided as jpg, or png.

    An interesting note is that it will also make the anti-spam OCR characters for live user input check, such as at http://www.aditus.nu/jpgraph/feature...y.php#AntiSpam Also includes a barcode generator, FWTW.

    Anyway, I plan on trying this library out with my data, unless anyone knows of something better and easier. Has anyone used this library and can give me some feedback on the processing overhead for the php processor on the server? I don't want to crash the php part of my webserver.
    Last edited by Strangeplant; 02-01-2007 at 12:53 PM. Reason: image didn't show; added link

  3. #3
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,878
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    An interesting note is that it will also make the anti-spam OCR characters for live user input check, such as at http://www.aditus.nu/jpgraph/feature...y.php#AntiSpam
    However, judging by the demo, it doesn't go the full length required to make such things accessible. I'd avoid it if I were you.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends franšais | entiendo espa˝ol | t˘i Ýt hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •