Skip to content

amacar/generateBitcoinPriceImage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

generateBitcoinPriceImage

Php script for bitcoin price image generation

Use like this (demo): http://amacar.tk/generateImage/index.php/?VALUE=100&CUR=USD&TYPE=24h_avg&TIMESTAMP=YES&PRECISION=7&COLOR=0000FF&SIZE=12&FONT=calibri alt tag

Parameter VALUE is just amount you want to convert to BTC

Parameter CUR is currency and could be any value from: https://bitcoinaverage.com ('USD', 'EUR', 'GBP', 'CAD'...), default is USD.

Parameter TYPE could be 'ask', 'bid', '24h_avg', 'last', default is last.

If parameter TIMESTAMP is 'yes', then timestamp is added to image, otherwise no. Default is no timestamp added.

Parameter PRECISION allows you to round calculated value to decimals. Default is 5.

Parameter COLOR will change text color. Accept HEX values, default is black.

Parameter BGCOLOR will change background color. Accept HEX values, default is transparent background.

Parameter OPACITY will change the opacity of background color. Valid parameters are numbers from 0 to 127 (0 is completely opaque, 127 is fully transparent)

Parameter SIZE is size of text, default is 11.

FONT is font of text, default is arial.

Donations: paypal: amadej.pevec@gmail.com

bitcoin: 1PdHRDrRxBsohPRJMxTa5cVLNriEbJUhdP

About

Php script for bitcoin price image generation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages