Käynnissä

Write a PHP function that generates a simple PNG image

I need a PHP function that I will use within Wordpress. This PHP function will generate a rectangular (760x450 pixel) PNG file (example attached). The file is a graphical representation of some datapoints. The function will be called with an array of data points and will create a "graph" of those data points appearing on a standard background. The function might use libraries such as described here ( [url removed, login to view] ). The function will be called "save_mood_graph(...)".

EXAMPLE SNIPPET

Below I show an example of the function and how it might be called from within Wordpress.

<---- Example code snippet below

$my_data_array = array(2,5,1,9,10,8,10,9,2,8,10,8,10);

$my_destination_file = "/tmp/[url removed, login to view]";

save_mood_graph($my_data_array, $my_destination_file); // should generate a PNG in the destination location

function save_mood_graph($data_array, $destination_file)

{

// Your code here

}

DETAILED REQUIREMENTS

* The only dynmic part of the graph is the white dots and the white lines between the white dots (see example image). The rest is a static image.

* A maximimum of 13 points can be displayed.

* Horizontal spacing between points is always the same.

* If there are less than 13 points, the left side of the graph will be empty. For example, if there is only one point in the data array, it will appear on the right hand side of the graph.

* All values in the array will always be one of the numbers 1,2,3,4,5,6,7,8,9,10 (it will never be bigger than 10 or smaller than 1)

* If a file already exists in the same location as the $destination_file, go ahead and overwrite

* The example snippet above should create a graph that looks exactly like the example image attached to this work item.

* The code must be valid and callable from within Wordpress. Code will not be accepted until it is called successfully from my wordpress site so I will be asking the developer to put an example function call in my wordpress site to demonstrate that it works.

EXAMPLE IMAGES

I have included 2 image examples. The first image shows what the desired output would be. The second image has some explanatory text laid on top to help clarify what I want done.

Taidot: PHP, WordPress

Näytä lisää: wordpress developer numbers, graph use data, use graph, top graph, representation graph, part graph, numbers function, need help wordpress developer, write code php, graph top, graph representation data, graph data examples, see write, function numbers, developer php function, create graph, array graph, a graph, php create function, always write, php file array, code snippet wordpress, php text array, create png image, call function

About the Employer:
( 27 reviews ) Mesa, United States

Projektin tunnus: #4244325

Myönnetty käyttäjälle:

upekshawisidaga

I can code a function to generate the image.

50 $ USD 3 päivässä
(24 arvostelua)
5.2

13 freelanceria on tarjonnut keskimäärin 95 $ tähän työhön

linuxfreak1985

Hi there, We are experts in PHP Open Source (any kind of PHP/MySQL work),wordpress and Ajax/Web 2.0 technology. Some of the projects we completed for php are mentioned below https://www.freelancer.com/projects/ Lisää

180 $ USD 5 päivässä
(300 arvostelua)
7.5
mitcreation

For more details, Please check your PMB.

100 $ USD 3 päivässä
(13 arvostelua)
5.0
kirilpanchev

Dear sir, I have over 10 years of experience in Web Development including PHP, MySQL, Wordpess, etc. I am a Zend Certified PHP Developer (ZCE). I can help you out with your troubles. Cheers!

80 $ USD 2 päivässä
(34 arvostelua)
4.8
ViliusSutkus

Details in private.

80 $ USD 2 päivässä
(16 arvostelua)
4.8
sanja1989

Hi! GD library has some problems with antialiasing. Please take a look at file in PM.

50 $ USD 2 päivässä
(2 arvostelua)
4.7
FunkyVogel

Hello, i am a german software developer. I can do this job very fast and provide high quality! thank you!

50 $ USD 2 päivässä
(7 arvostelua)
4.4
XWebHunter

PHP WORDPRESS Expert

70 $ USD 2 päivässä
(17 arvostelua)
4.3
TechnoCloud

Sounds challenging but doable. Please check PMB for more info

150 $ USD 3 päivässä
(9 arvostelua)
4.1
vishalwebexpert

Hi, I have the experience and ability to perform the services you need, and I will carry them out in a professional and timely manner. For more details,please check your Private Message Box. Thanks and Rega Lisää

200 $ USD 3 päivässä
(6 arvostelua)
4.0
muditha256

please check the pm

90 $ USD 4 päivässä
(8 arvostelua)
3.6
duchuyctlk

Please check pmb for my further detail

70 $ USD 1 päivässä
(5 arvostelua)
2.3
cristimac

I understand your need's, it is simple for me. I am new to freelancer but i have 4-5 year of experience.

60 $ USD 2 päivässä
(0 arvostelua)
0.0