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

Image displaying techniques...help:)

Tried this technique with a link from google images...but when I tried it from an image that I had uploaded to my OneDrive account...nothing happend? One more technique that is useful for several reasons (You can put it in a macro, you can use images not uploaded to roll20, players can use it) is to take advantage of the Update of Holding's new Basic Formatting . Copy an image url an put it in this format: [Vince the Destroyer](<a href="http://content-img.experienceproject.com/1382089145Thwcys-i.jpg" rel="nofollow">http://content-img.experienceproject.com/1382089145Thwcys-i.jpg</a>) If you have an image that doesn't end in an extension (common for certain file sharing services), you and append a fragment identifier after the url that looks like an extension: [Gold the Great](<a href="https://s3.amazonaws.com/files.d20.io/images/1725103/oXeN9hS_kB395ps0zsHD9Q/med.gif?1377575057&size=200x200#.gif" rel="nofollow">https://s3.amazonaws.com/files.d20.io/images/1725103/oXeN9hS_kB395ps0zsHD9Q/med.gif?1377575057&size=200x200#.gif</a>)
1528894191

Edited 1528894243
vÍnce
Pro
Sheet Author
I include a macro in my games to help quickly insert images. #chat-image [x](?{To post an image to chat; paste URL (must end with .jpg, .png, or .gif)|}) &nbsp; I've also found you can often just remove any of the extra url after the image extension ie remove the bold after .gif [Gold the Great]( <a href="https://s3.amazonaws.com/files.d20.io/images/1725103/oXeN9hS_kB395ps0zsHD9Q/med.gif" rel="nofollow">https://s3.amazonaws.com/files.d20.io/images/1725103/oXeN9hS_kB395ps0zsHD9Q/med.gif</a> ?1377575057&size=200x200# ) [Gold the Great]( <a href="https://s3.amazonaws.com/files.d20.io/images/1725103/oXeN9hS_kB395ps0zsHD9Q/med.gif" rel="nofollow">https://s3.amazonaws.com/files.d20.io/images/1725103/oXeN9hS_kB395ps0zsHD9Q/med.gif</a> ) &nbsp;
Vince, have you ever done this with an image that you personally have stored on Onedrive? Because it just seems like OD doesn't link images as other sites do? The only way I can view the image...is if I "go to it's location in OD". Even the link it provides appears to work this way. (I realize that this may be more of a OD question than a Roll20 question;)&nbsp;
1528940870

Edited 1528940954
vÍnce
Pro
Sheet Author
I was able to pull an OD image by using the "view original" url on OD's gallery...&nbsp; And I also cropped the extra url text that came after .jpg
1528942331

Edited 1528950184
hmmm...ok! Well, that's promising. I'm not sure what I'm doing wrong. I've got the image stored in the default "Pictures" folder. It gives me a link when I "share". My link has no image file extension though ( <a href="https://1drv.ms/u/s!AvJw6AM4OpwAhHhgV6xsVGg5P21k" rel="nofollow">https://1drv.ms/u/s!AvJw6AM4OpwAhHhgV6xsVGg5P21k</a> ). Any clue what I might be doing wrong? I am able to "view original" from the file toolbar in OD...but it's not giving me a link at that point. I don't have much experience with Onedrive, just messing with it for Roll20:)
1528944483

Edited 1528944751
vÍnce
Pro
Sheet Author
WarBeer said: hmmm...ok! Well, that's promising. I'm not sure what I'm doing wrong. I've got the image stored in the default "Pictures" folder. It give me a link when I "share". My link has no image file extension though ( <a href="https://1drv.ms/u/s!AvJw6AM4OpwAhHhgV6xsVGg5P21k" rel="nofollow">https://1drv.ms/u/s!AvJw6AM4OpwAhHhgV6xsVGg5P21k</a> ). Any clue what I might be doing wrong? I am able to "view original" from the file toolbar in OD...but it's not giving me a link at that point. I don't have much experience with Onedrive, just messing with it for Roll20:) Strange, I can copy the URL in the address bar on the view original page.&nbsp; Not sure why you aren't getting the same.&nbsp; Try using the browser's "inspect element" on the image.&nbsp; I can grab image url's directly from the page's html using this method. Select the img src code, right-click and choose "Edit HTML" copy and paste as needed. Image url: <a href="https://by3302files.storage.live.com/y4maxL5TVgv0" rel="nofollow">https://by3302files.storage.live.com/y4maxL5TVgv0</a>... EDIT: scrap that.&nbsp; It appears that even when you grab the url directly like above, onedrive will block the image. ;-(&nbsp; Using view original from my own gallery is the only way I can grab a url.
Ok...so, the picture of the cat on the stairs. That's in your OD storage...how did you pull the URL for that? Clearly, you were able to link it in the macro. When I click on "view original"...I get the option to "save" or "open".
1528951414
vÍnce
Pro
Sheet Author
(just typed up a lengthy reply only to have the editor delete it mid character... damn roll20's editor all to he||) as I was saying; I open my onedrive folder online(using chrome), open my pictures folder, choose an image, then use "view original" from the top menu which opens the image in a new tab.&nbsp; The url in the address bar is verrrrrry, but does include .jpg with some trailing text.&nbsp; I only copy the url to the end of .jpg and use that in my chat image macro.
1528951538
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
My suggestion would be to skip OneDrive. It obviously has all sorts of controls to keep you from doing what you want to do in order to hot link into Roll20. Use a tool like Imgur, which is built for it.
1528951820
vÍnce
Pro
Sheet Author
keithcurtis said: My suggestion would be to skip OneDrive. It obviously has all sorts of controls to keep you from doing what you want to do in order to hot link into Roll20. Use a tool like Imgur, which is built for it. Agreed.&nbsp; I use imgur often.&nbsp; I've never used onedrive before tonight's "experiment"...&nbsp; Considering you have to grab a url from a full res(original) image, I would say onedrive appears to be a poor choice for hot-linking images.
@Keithcurtis...I think you're right. I just tried Onedrive, because I happened to already have an account.&nbsp; @Vince...I really appreciate your help and giving it a shot for me;) I'm really liking what Roll20 has to offer...not perfect, but then again...neither is any RPG system;) If I can get a game to work well enough via my modest bandwidth...I'll definitely become a supporting member.
1528956369

Edited 1528956513
Brian C.
Pro
Marketplace Creator
Compendium Curator
Hm, this seems to partially be an issue with how Roll20 is grabbing the image. I use SharePoint "anyone can view" links in customer's websites so they can easily keep images on their websites up to date. The same links work in normal html in a browser but do not work in a Roll20 link. Either way, it still looks like a non-starter. Unfortunately, it looks like the best you can do with OneDrive is copy and paste the link, requiring people to click the link and getting the "external website" warning.
1528956550
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Brian C. Can you post a URL to test? The OneDrive links above had some sort of built in redirect, for instance.
1528957869

Edited 1528957907
Brian C.
Pro
Marketplace Creator
Compendium Curator
Here is one of my links. <a href="https://escondidoasphalt.sharepoint.com/:i:/g/Webs" rel="nofollow">https://escondidoasphalt.sharepoint.com/:i:/g/Webs</a>... I use it that way in the web page, but if you click on it directly, after processing the authorization string, it redirects to: <a href="https://escondidoasphalt.sharepoint.com/WebsiteDat" rel="nofollow">https://escondidoasphalt.sharepoint.com/WebsiteDat</a>... This happens after the authorization string is processed (i.e. the redirected link will not work until the original link is used). After that, you can use the redirected link directly. All that processing is handled inside the browser when used in an &lt;img&gt; tag. However, no version of the link works with Roll20.
1528959981

Edited 1528960373
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Well, I can verify that doesn't work. :) My Imgur links work, but not the SharePoint links. Perhaps they have some sort of tag or metadata that Roll20 doesn't like? EDIT: Not that I can see via the image info.
1528961294
Gold
Forum Champion
Vince said: I include a macro in my games to help quickly insert images. #chat-image [x](?{To post an image to chat; paste URL (must end with .jpg, .png, or .gif)|}) &nbsp; You might want to upgrade that macro, Vince. Check out this version.&nbsp; I created a more Accessibility Friendly version that prints the caption so the captioning isn't useless, and the image is described in text for visually impaired. It's also a bit more interactive for the poster, with a Query asking for caption (has a default so you can just hit return quickly), and then the Query asking for a URL ending in JPG or PNG (again with a default image pre-coded so you can just hit return and show a Roll20 Quantum logo). . /me describes it so you can imagine this, ?{What is it a picture of? Write a concise caption:|Picture of } [Image](?{Image URL ending with JPG, GIF, or PNG|<a href="https://app.roll20.net/images/quantumroll2.png" rel="nofollow">https://app.roll20.net/images/quantumroll2.png</a>}) Screenshot of what it does: Keith, I don't know if this would qualify as a Stupid Trick.&nbsp; Maybe It should be a suggested macro somewhere in the Wiki. WarBeer -- As for the OneDrive issue, I don't know One Drive's settings or policies, but it has to be a site that will allow the "hot linking" or embedding of a picture. Picture hosting sites that block that, won't work.
1528963305
Brian C.
Pro
Marketplace Creator
Compendium Curator
I think I figured out a way to make it work. When clicking on one of your OneDrive photos on the OneDrive website, it brings up a screen with the picture and a menu bar. One of the options is "View Original" (might take a second try to get that option to appear). This brings up a very long URL that you can use if you remove the "?psid=1" that appears after the file extension.
Brian...when I do as you suggest "View Original"...it loads a blank screen with no address (just the file name as it appears in my folder) and brings up the Open/Save window. With open...the only thing remotely like an address is under "file info" (C:\Users\Scott\AppData\Local\Packages\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\TempState\Downloads)...which of course isn't. But there's nothing in the address bar when I open it.&nbsp;
1528968287

Edited 1528968337
Just set up an Imgur account. Holy cow, that may have been the easiest account I've ever set up...lol. I was waiting for it to either redirect me or tell me that I needed to verify with an email. Nope, it was already done and I was already logged in. Uploaded the same test image...copied link...added .jpg and BINGO...worked like a charm;)
1528971471

Edited 1528971805
Brian C.
Pro
Marketplace Creator
Compendium Curator
WarBeer said: Brian...when I do as you suggest "View Original"...it loads a blank screen with no address (just the file name as it appears in my folder) and brings up the Open/Save window. With open...the only thing remotely like an address is under "file info" (C:\Users\Scott\AppData\Local\Packages\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\TempState\Downloads)...which of course isn't. But there's nothing in the address bar when I open it.&nbsp; I don't know what to say if it didn't work for you. I wasn't clear if you were looking at the file from the OneDrive website or your computer (needs to be the website), but beyond that I am not sure what may have gone wrong. I got it working, but it is a bit of a hack, and I wouldn't use it anyway as there are too many hoops to jump through. One of the other solutions (like imgur, which you got working) is a better choice for your use case anyway.
1528983640
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Gold said: Keith, I don't know if this would qualify as a Stupid Trick.&nbsp; Maybe It should be a suggested macro somewhere in the Wiki. If you write it up describing what problem it solves or why it's a good practice, sure.
1528984058
The Aaron
Pro
API Scripter
WarBeer said: hmmm...ok! Well, that's promising. I'm not sure what I'm doing wrong. I've got the image stored in the default "Pictures" folder. It gives me a link when I "share". My link has no image file extension though ( <a href="https://1drv.ms/u/s!AvJw6AM4OpwAhHhgV6xsVGg5P21k" rel="nofollow">https://1drv.ms/u/s!AvJw6AM4OpwAhHhgV6xsVGg5P21k</a> ). Any clue what I might be doing wrong? I am able to "view original" from the file toolbar in OD...but it's not giving me a link at that point. I don't have much experience with Onedrive, just messing with it for Roll20:) Try: [x](<a href="https://1drv.ms/u/s!AvJw6AM4OpwAhHhgV6xsVGg5P21k#.png" rel="nofollow">https://1drv.ms/u/s!AvJw6AM4OpwAhHhgV6xsVGg5P21k#.png</a>) Adding #.png to the end lets Roll20 know it's an image, which puts it in an &lt;img&gt; tag in the chat, then the browser will use mime-types to determine the actual image type and display it.&nbsp; This works for any image type the browser can display: [x](<a href="https://some.domain.com/someimage.svg#.png" rel="nofollow">https://some.domain.com/someimage.svg#.png</a>)
1528985088
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Maybe a Stupid Trick that combined all the good advice in this thread?
Thank you EVERYONE for all the help and ideas! This is a great forum, with lots of friendly and helpful people:) I'm not surprised, considering the hobby....it's always been one that promotes camaraderie for the most part:)
1528987694

Edited 1528998181
@Aaron...BTW...[x]( <a href="https://1drv.ms/u/s!AvJw6AM4OpwAhHhgV6xsVGg5P21k#.png)...didn't" rel="nofollow">https://1drv.ms/u/s!AvJw6AM4OpwAhHhgV6xsVGg5P21k#.png)...didn't</a> work for me. It produced an image "icon" in the chat window and when clicked, gave me the option to go to the site. But then only dumped me at my folders page. Obviously, it's quirky. It must have something to do with me owning the account. It forced me to logged in as well. Weird. But Imgur seems to work like a champ and it's even faster to upload images as well. So, good all around:)
1528988500
The Aaron
Pro
API Scripter
Cool deal. =D