This is slightly improved version of standard image widget for Dashing.
I had no other choice but to optimize all my image related services (Daily Dilbert, Office Alerts, Quick Camera, Slide Show, etc.) to use the same image widget.
##Usage
To use this widget, copy image.html
, image.coffee
, and image.scss
into the /widgets/image
directory. If you want to keep original image widget, rename files and create appropriate widget directory.
Use it as standard image widget.
##Settings
Additional optional settings for widget are data-width
and data-height
attributes used to stretch image horizontally or vertically. If neither of them is specified and image_width
/image_height
event parameters are sent, image size ratios are calculated.