A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: .txt to .png

  1. #1
    Happy FK'er TheWaste's Avatar
    Join Date
    Dec 2003
    Location
    Here
    Posts
    779

    .txt to .png

    Hey guys

    Quick question,
    What are my chances of being able to convert a txt file on a sever, to a png file?

    Say for example I have a txt file with a bunch of pixel information in it... eg:
    one pixel = 33ff55
    text file contains = 33ff5533ff5533ff5533ff55
    (note, output png file will have no transparency)

    At the moment I have a server-side drawing app reading each pixel from the txt file, converting the hex codes into rgb, and then drawing a png file pixel by pixel... it works, but it takes wayyy too long...

    Anyone have thoughts on this?
    Help appriciated

    ~TheWaste
    "Good lord, you're wasting thousands of dollars worth of Interferon!"
    "... and you're Interferon with our good time!"

  2. #2
    Product Designer keyone.it's Avatar
    Join Date
    Aug 2001
    Location
    Rome, Italy.
    Posts
    1,625
    You can do so with graphic libraries.
    The latest PHP compiles include the GD graphic library..

    Go to http://www.php.net/ and type image in the search box.

    You will find documentation about all the available functions.

    Give more attention to user comments: they are packed with sample codes...
    Altruism does not exist. Sustainability must be made profitable.

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center