Author

Topic: USD to BTC Pricing Image Script (configurable size, colors) (Read 569 times)

legendary
Activity: 854
Merit: 1000
Great work OgNasty!

just my BTC

Perfect. works like a charm
legendary
Activity: 1442
Merit: 1186
Open source at all? Id be happy to add that functionality.

I have similar script, but it is more powerfull...[snip]

You should create your own thread. It's kind of rude to hijack someone else's thread and post your stuff and call it better. Not cool.
hero member
Activity: 707
Merit: 501
Open source at all? Id be happy to add that functionality.

I have similar script, but it is more powerfull (check below for extra parameters), will put it on github when will have time or can sell it to you very cheap.

I made this:

Link is:
Code:
[img] http://amacar.hostei.com/generateImage/index.php/?VALUE=10&CUR=USD&TYPE=24h_avg&TIMESTAMP=YES&PRECISION=7&COLOR=00FFFF&SIZE=12&FONT=calibri [/img]

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 SIZE is size of text, default is 11.
FONT is font of text, default is arial.

Currently supported fonts (can add more):
hero member
Activity: 686
Merit: 502
Open source at all? Id be happy to add that functionality.

No.  This script was designed for a single purpose a long time ago.  I just thought I'd post it here since it seemed to have been forgotten.

ah, well a great script anyway Smiley Thanks for the share.
donator
Activity: 4760
Merit: 4323
Leading Crypto Sports Betting & Casino Platform
Open source at all? Id be happy to add that functionality.

No.  This script was designed for a single purpose a long time ago.  I just thought I'd post it here since it seemed to have been forgotten.
hero member
Activity: 686
Merit: 502
Open source at all? Id be happy to add that functionality.
donator
Activity: 4760
Merit: 4323
Leading Crypto Sports Betting & Casino Platform
work for other currencies? eur, gbp?

No.  Just USD.  Embarrassed
hero member
Activity: 686
Merit: 502
work for other currencies? eur, gbp?
legendary
Activity: 1036
Merit: 1000
https://bmy.guide
Where does it scrape the conversion rate from?

Bitstamp, I believe.

nice script I will use this Smiley
donator
Activity: 4760
Merit: 4323
Leading Crypto Sports Betting & Casino Platform
Where does it scrape the conversion rate from?

Bitstamp, I believe.
hero member
Activity: 597
Merit: 500
Where does it scrape the conversion rate from?

Also this is awesome, thanks.
full member
Activity: 120
Merit: 100
Matt or Jack? Why not both!
If you'd like a script with more options and more accurate exchange rate without the begging for a donation, try this:
$25 =
$35 =
$15 =

Script courtesy of NastyFans and options to use it can be found at http://dev.nastyfans.org in the "Nasty Tools" section.

Bro I just wanna say that this jab at TBZ in another thread made my day  Cheesy
donator
Activity: 4760
Merit: 4323
Leading Crypto Sports Betting & Casino Platform
It auto updates right? Each time the PNG is called it grabs the current market rate and re-renders the image?

Yes.
legendary
Activity: 1442
Merit: 1186
That's cool! Did you do this with PHP's imagettftext(); ??
This could be useful for bloggers posting on their site or even here at the forum using the IMG tags.
It auto updates right? Each time the PNG is called it grabs the current market rate and re-renders the image?
donator
Activity: 4760
Merit: 4323
Leading Crypto Sports Betting & Casino Platform
USD to BTC Pricing Image Script:

We have made available a configurable script courtesy of nonnakip at http://dev.nastyfans.org in the "Nasty Tools" section that allows you to price things in USD and it is converted to an image showing the BTC amount.  Samples below showing the script options.



Code:
http://langrock.org/stats/btcval.png?usd=500&size=15&bg=dddddd&fg=006600

or more simply...


Code:
http://langrock.org/stats/btcval.png?usd=500
Jump to: