Kostas
Kostas

Reputation: 1903

Creating png image using PHP

Let's say I have a table of 480.000 values, and these values are between -1 to 10. -1 means transparency and 0 to 10 means a color.

Can I create a PNG image using PHP? I mean get every value (one by one) set pixel color or transparent pixels and export a PNG image[800x600] ?

I don't need code (would be nice tho), I just need to know if it's possible, and I will start the research. If it's not using PHP, then how is it possible? Another language-technology ? P.S. I want to program a server (CGI) for this job.

Upvotes: 0

Views: 192

Answers (1)

Putra L Zendrato
Putra L Zendrato

Reputation: 332

please check this. I think this best documentation http://www.php.net/manual/en/function.imagepng.php

Upvotes: 2

Related Questions