Add Inline URL Previews
Add auto-generated previews when a link is posted, showing the page title and a few lines of text.
Original suggestion from forums - https://forum.mattermost.org/t/preview-urls-inline/312
Hey all! Thanks for upvoting this feature and contributing to the discussion.
Mattermost v3.7 and later supports upgraded website link previews with most common services, including news sites, Twitter and GitHub.
An administration can enable the feature for their system via System Console: https://docs.mattermost.com/administration/config-settings.html#enable-link-previews
-
Anonymous commented
doesn't seem to work for links to mattermost messages. is there a uservoice for this?
-
Kelli Jae Baeli commented
will this work on a forum? If so, how would i include this feature for members of my forum?
-
Sean Chittenden commented
Twitter and github (issues, PRs, and gists). These four items are ~80% of what gets expanded in the Slack teams that I participate in.
-
Sumit Agarwal commented
Can this also work for attached images?
-
Andreas Scharf commented
We are using phantomjs for a similar problem. It is straight forward and works pretty well. It is headless webkit. The tricky thing is to wait for everything to load which is hard to determine.
Other then that it's really simple... url, size, filename, there you go.... -
Pierre Rudloff commented
If you need this feature, we developed a webhook that extract the title and description from links: https://framagit.org/Animafac/mattermost-linksnippets
-
yasuo commented
http://ogp.me/
I think this is how slack (facebook, google, twitter, etc...) does it for most URL's.Looks well documented, virtually everywhere and quite easy doable.
I am not into web stuff, though....
-
Jonas Friedmann commented
I would also love to have inline URL previews for non-images :)
-
Nick Triantos commented
I just took a look and found this list of 10 preview generators. Most have a free tier with enough to be useful to many organizations. http://webresourcesdepot.com/10-free-website-thumbnail-generation-services/ shrinktheweb looks nice, though none of these would work with intranet pages, if that mattered.
-
This will be available for GIF URLs in v1.2 (already on master),
Ticket accepting pull requests to add other images: https://mattermost.atlassian.net/browse/PLT-862
Websites are a little different, as we need a spec for how to process the metadata and image (size, placement)--anyone have suggestions sufficiently specific so we can open a ticket?