Welcome, Guest. Please login or register.
Did you miss your activation email?
2018-Sep-20 09:28

Login with username, password and session length

Recent

Shoutbox

Den:
Sep. 19 2018 - 4:15pm
twit to image works again
Den:
Sep. 18 2018 - 4:06am
riders on the storm
Den:
Sep. 16 2018 - 1:07am
Gnomish uprising
Den:
Sep. 15 2018 - 5:44pm
keywords updated on ccgsearch
Den:
Sep. 14 2018 - 3:07am
fixed up daccg.com/ccgsearch/

since magiccards.info is gone, and cant find simple fast replacement
Den:
Sep. 09 2018 - 7:26am
Xayvir, Game Designer
Den:
Sep. 02 2018 - 2:49am
improved card creator Planeswalker frame
Den:
Aug. 28 2018 - 2:54pm
completed lists of plen things in relation to jung archetypes

Author Topic: Text to image / Dynamic images  (Read 2907 times)

Den

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1179
  • Selina is my Superstar
    • View Profile
    • Amuseum
Text to image / Dynamic images
« on: 2010-Jan-11 18:40 »
Using gd library in PHP, you can put text into images. Can be used for various things, like latest lastfm or twitter status, etc. (TODO: try SVG with inline scripting and styling.)

last.fm
Code: [Select]
http://www.shenafu.com/imgd/lastfm/username.png
e.g.

http://www.shenafu.com/imgd/lastfm/amuseum.png


twitter
Code: [Select]
http://www.shenafu.com/imgd/twitter/username.png
e.g.

http://www.shenafu.com/imgd/twitter/maro254.png


Days Until
Code: [Select]
http://www.shenafu.com/imgd/daysuntil/yyyymmdd.png
e.g.

http://www.shenafu.com/imgd/daysuntil/20121110.png


Weather Forecast
Code: [Select]
http://www.shenafu.com/imgd/weather/place.pngwhere place can be:

city
city,country  ISO 3166 country code
zip code
airport
latitude,longitude


e.g.

http://www.shenafu.com/imgd/weather/san francisco.png


Note: http://api.wunderground.com/ no longer provides free API keys. Find another provider.

Poems
Code: [Select]
http://www.shenafu.com/imgd/poem/genre_poemid_verseid.png
where genre is a valid available genre and poemid is out of accessible poems for that genre and verseid is out of max verses for that poem or song. If genre or poemid or verseid is not found, then it will be randomly selected.

Available genres and number of poems:
Genre# Poems
tang  320
american  12
kaytse  49
kara  1


e.g.






« Last Edit: 2018-Aug-14 21:09 by Den »
Support me on Patreon

I saw. I conquered. I came.

Den

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1179
  • Selina is my Superstar
    • View Profile
    • Amuseum
Image of the Day
« Reply #1 on: 2010-Jan-17 17:42 »
Images of the Day

These SVG images are clickable, upon which a new window will open to the site. (SVGs are clickable only if contained within <object> tags.)

Code: [Select]
http://www.shenafu.com/imgd/daily/site.svg

Sites available, use code in first column (all lowercase):
nasa : http://www.nasa.gov/multimedia/imagegallery/iotd.html
osei : http://www.osei.noaa.gov/OSEIiod.html
epod : http://epod.usra.edu/
comic or comic_name: http://gocomics.com/name/
xkcd: http://xkcd.com/

e.g.
Code: [Select]
http://www.shenafu.com/imgd/daily/nasa.svg


Code: [Select]
http://www.shenafu.com/imgd/daily/comic_bc.svg


Code: [Select]
http://www.shenafu.com/imgd/daily/xkcd.svg

« Last Edit: 2012-Mar-30 19:41 by Den »

Den

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1179
  • Selina is my Superstar
    • View Profile
    • Amuseum
Re: Text to image / Dynamic images
« Reply #2 on: 2012-Jan-02 00:31 »
From deck of KARA 5 suited deck, create a random poker hand. Changes hourly.
Code: [Select]
http://www.shenafu.com/imgd/kara5poker.png


Different animated gif on page refresh:
Code: [Select]
http://www.shenafu.com/imgd/kara5anim.gif
« Last Edit: 2012-Apr-03 23:08 by Den »

 

7 Guests, 0 Users