ady624 / webCoRE

webCoRE is a web version of CoRE
GNU General Public License v3.0
251 stars 984 forks source link

Request: allow pistons to create external image from text #76

Open kevin789900 opened 5 years ago

kevin789900 commented 5 years ago

This is specifically to support ActionTiles which has limited to no capability to show any data from WebCoRE unless it is via a SmartThings supported device. ActionTiles does have capability to show images.

Request a way to add text to an image. Maybe each piston could have an 'external image' URL similar to the piston external URL. The new URL would return GIF or PNG(???) image as created by the piston new text2image commands. Some options to control font size would be useful as well (title larger font, footer info small font etc).

WebCore tiles are oviously very similar, so maybe they could be extended to provide an external image URL.

ImageMagick comes up frequently when searching net for 'adding text to image' Some possibly useful (???) resources....

http://im4java.sourceforge.net/

https://stackoverflow.com/questions/1636913/which-java-groovy-library-to-overlay-text-on-an-image

https://stackoverflow.com/questions/18800717/convert-text-content-to-image