Linking images in Dropbox for tile icons

I have read posts where people say they’ve used URLs to images in their Dropbox for icons in ST tiles. I can’t get that to work. I go to the image in Dropbox, click share, create a link anyone can view, and paste that link into my device handler. Example:

attributeState “on”, label: ‘${name}’, action: “switch.off”, icon: “https://www.dropbox.com/s/ta54txpk8dz171r/rat.png?dl=0”, backgroundColor: “#00A0DC

If I use an image hosting site, that link works just fine. So why is the Dropbox link not working?

Thanks

This caused problems for the Lock Manager SmartApp too recently. I believe Dropbox changed something that basically means you can no longer do this.

I always use GitHub for my SmartApp icons.

3 Likes

Try changing the dl=0 to raw=1

1 Like

That worked perfectly! Thanks very much for that.