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

Question about posting a picture from my library using [My Alt Text]

Hello all, Simple question but having trouble making it work. &nbsp;I can use the command "[My Alt Text](<a href="https://blausternschlonge.files.wordpress.com/2012/02/fire-priest-ritual.jpg" rel="nofollow">https://blausternschlonge.files.wordpress.com/2012/02/fire-priest-ritual.jpg</a>)" to grab a pic from the web, but how can I use it or another command to post a picture in the chat window from My Library? Thank you!
1472234802
The Aaron
Pro
API Scripter
You can add an HTML Fragment to the end with an image file extension to cause it to be detected as an image. The extension doesn't need to match the type of image. &nbsp;This also works for services that provide an image without an extension, or with GET parameters on the end of the url: [My Alt Text](<a href="https://s3.amazonaws.com/files.d20.io/images/16204335/MGS1pylFSsnd5Xb9jAzMqg/med.png?1455260461" rel="nofollow">https://s3.amazonaws.com/files.d20.io/images/16204335/MGS1pylFSsnd5Xb9jAzMqg/med.png?1455260461</a> #.jpg )
1472238150

Edited 1472238208
^ Awesome!
Thank you Aaron, but I'm not sure that I am following. &nbsp;If I have, as an example, a picture saved as "ramas closeup.jpg" in my art library do I change its name or change something in the [My Alt Text]() command, or both? Thanks for your help :)
Within Your Library , right-click on an image, copy the image's URL, add it to [My Alt Text](), and then attach an HTML fragment to the end, as demonstrated by The Aaron.
1472241017
The Aaron
Pro
API Scripter
Ah. &nbsp;So, in your image library you need to copy the URL of the image. &nbsp;It will be something like: `<a href="https://s3.amazonaws.com/files.d20.io/images/16204335/MGS1pylFSsnd5Xb9jAzMqg/med.png?1455260461`" rel="nofollow">https://s3.amazonaws.com/files.d20.io/images/16204335/MGS1pylFSsnd5Xb9jAzMqg/med.png?1455260461`</a> Once you've copied the image URL, you can paste it into a regular Markdown image link: `[Some Text](<a href="https://s3.amazonaws.com/files.d20.io/images/16204335/MGS1pylFSsnd5Xb9jAzMqg/med.png?1455260461)`" rel="nofollow">https://s3.amazonaws.com/files.d20.io/images/16204335/MGS1pylFSsnd5Xb9jAzMqg/med.png?1455260461)`</a> However, because the URL doesn't end in .jpg, .png, .gif, it will show up as a link. &nbsp;To hint the chat system that it actually is an image, you add an HTML fragment to the end ( #&lt;something&gt; ) which has one of the above extensions: `[Some Text](<a href="https://s3.amazonaws.com/files.d20.io/images/16204335/MGS1pylFSsnd5Xb9jAzMqg/med.png?1455260461" rel="nofollow">https://s3.amazonaws.com/files.d20.io/images/16204335/MGS1pylFSsnd5Xb9jAzMqg/med.png?1455260461</a> #.jpg )`
THANK YOU!
1472316306
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Couldn't you also just delete the string of numbers after the p g/jpg in the library link?
1472351250
The Aaron
Pro
API Scripter
Yeah, I suppose you could. :). I'm pretty sure it's just a cache buster.&nbsp;