-
-
Notifications
You must be signed in to change notification settings - Fork 60
View & Share Remote Image
Buzzard Brain edited this page May 28, 2025
·
1 revision
Type: Script
Contributor: Buzzard
Description: Provides a modal to specify a URL to a remotely hosted image and then displays that image inside of a Foundry image modal without having to host that image inside Foundry. Displayed images can then be shared with Players. This is very helpful for quickly sharing visual references in-game without having to download and upload images into Foundry.
new Dialog({
title: "Remote Image",
content: `<div class="form-group"><label for="url">Image URL</label><input type="text" name="url"/><br /><br /><label for="head">Title (optional)</label><input type="text" name="head"/></div><br />`,
buttons: {
ok: {
label: "OK",
icon: `<i class="fas fa-check"></i>`,
callback: html => {
const url = html.find("[name=url]").val();
const head = html.find("[name=head]").val();
const ip = new ImagePopout(url, {
title: head
});
// Display Image Popout
ip.render(true);
}
}
}
}).render(true);
- Home
- User Guide
- Getting Started
- Modifiers and the Modifier Bucket
- Combat Tracker
- Foundry Items
-
Cool Macros
- Ammunition Resource Spend Assistant
- Alternate Form
- Bad Footing Active Effect
- Clear All Active Effects
- Combat Reset
- Create and Toggle Active Effect
- Fireball Damage
- Invisibility
- Last Targeted Roll demo and margin of success
- Major Healing
- Manual Damage
- Mass Fright Check
- Melee Spell Strike Handler Template
- Missile Spell Handler Template
- Multiple Quick Contests
- Multiple Token Manoeuvre Setting
- Open/Close Helmet Visor
- Quick Combat
- Quick-Draw and Shoot
- Roll Attack and Critical Hit
- Roll Table Dialogue
- Scale Lighting
- Skill Derived Active Defence
- Spell Damage
- Spell and Power Casting Assistant
- Throwing
- Toggle Reeling or Exhausted
- Advanced Features
- Useful OTFs
- User Recommended Modules
- Animation Libraries
- Development Standards