Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

Is there an api to show a picture to players desktop?

I think this AI is hallucinating, but I thought I would check and see if I missed a memo.  The AI in Google search had this to say:


AI Overview
To show a picture in Roll20 using a macro or API, you can use the following method: in the chat box, type !image [image URL]this will display the image from the provided URL on the tabletop for all players to see. 
February 26 (1 month ago)

Edited February 26 (1 month ago)
Gold
Forum Champion

Desktop? 

The best largest display method is, select the graphics object in Roll20 and (as GM) press SHIFT-Z. To do it for yourself alone just press Z. 

This will pop-up the image in a lightbox at the largest size it can.

This method is a Free default Roll20 feature, and is not an API key, script or Mod.

That AI answer is inaccurate and appears to use out-of-date information and mixed up vocabulary). The code it gives was depricated from long ago anyway, but it's for displaying an image in the chat room side bar. The way to do that now is just put an image URL (ends with .JPG or .PNG or .GIF) into the chat and it will load the image into the chat. No macro code syntax needed. Great for incorporating an illustration or animation into your attack roll macros though. Also useful for showing everyone an image from the web that isn't uploaded to the GM's art library. 

February 26 (1 month ago)
keithcurtis
Forum Champion
Marketplace Creator
API Scripter

Depending on what your intent is, there is also this API based method:

Scenes Macro for Theater of the Mind  - Video Demo

Dude! Using an image as a giant token is brilliant! I can't believe I have never seen this mentioned before in all the threads about imitating shift-z in code. I'm going to use this to get a jump scare when the party opens a door. 

"That AI answer is inaccurate and appears to use out-of-date information and mixed up vocabulary"

It really is called hallucinating when AI makes up an answer that isnt true, that wasn't me trying to be funny. 

February 27 (1 month ago)

Here's what I do as GM, to show a larger version of a token to the players:  I select the token and touch 'z'.  I right-click the enlarged image, and do "copy image URL".  In chat, I type [img](xxx) where xxx is the pasted URL of the image, and that will show the image to the players.  You might find that the text in the URL from the ? onwards needs to be deleted to make it work.  You will probably find that if you use .webp images, you need to delete the ? onwards, and replace it with ?.png to fake the roll20 chat-handling code into just doing it.

I wouldn't mind if this was a bit easier, but I don't do it often enough that its clunkiness makes me stop using it.

(What I also do as GM is keep a separate campaign journal in a cloud document service, that the players have shared access to, and I have a prepared set of images to paste into the campaign journal as the adventure progresses.  We keep a loot spreadsheet there as well, an xp spreadsheet, a document with rules clarifications, etc.)

February 27 (1 month ago)
Gold
Forum Champion


Evil Donno said:

Here's what I do as GM, to show a larger version of a token to the players:  I select the token and touch 'z'.  I right-click the enlarged image, and do "copy image URL".  In chat, I type [img](xxx) where xxx is the pasted URL of the image, and that will show the image to the players.  You might find that the text in the URL from the ? onwards needs to be deleted to make it work.  You will probably find that if you use .webp images, you need to delete the ? onwards, and replace it with ?.png to fake the roll20 chat-handling code into just doing it.

I wouldn't mind if this was a bit easier, but I don't do it often enough that its clunkiness makes me stop using it.

You should be able to do this a bit easier now, you don't need the [img](xxx) part anymore. You can just paste the URL directly into the chat. Try it.