Forum:How can I include pictures stored on photos.google.com ?
ShoutWiki — express yourself and be heard!
Jump to navigation
Jump to search
Forums: Index → Community help
One of the uses of my Wiki is to hold sets of illustrated instruction. Since the number of pictures will be large, I don't want to run into Shoutwiki's file limit or overload whatever my size allowances are. Besides, the pictures already exist on photos.google.com. How can I include them within my wiki? The normal [[File:https://photos.app.goo.gl/s6PQl2TQ4dO2]] type link doesn't work.
Thame Theatre Technical (talk) 09:57, 31 October 2017 (UTC)
- There are 2 or 3 things.
- The image domain needs to be allowed by MediaWiki:External image whitelist on your wiki. For the example below, that would be
thameplayers.co.uk/
. MediaWiki blocks the insertion of external images by default, because malicious images are one way hackers exploit browser vulnerabilities. If you're confident that the images from a particular domain are safe, then you can whitelist them for inclusion. - The
File:
syntax is used to insert images from the wiki's special File: namespace onto wiki pages. To insert an external image, just type the URL, e.g.,http://thameplayers.co.uk/wp-content/uploads/2012/11/theatre-outside.jpg
. If the domain isn't whitelisted, MediaWiki just makes a link to it rather than inserting the image located there. - Optionally, you can resize external images using CSS. Images inserted from the File: namespace have syntax options built-in to wiki mark-up to resize them. Images inserted from external sources require additional effort.
- The image domain needs to be allowed by MediaWiki:External image whitelist on your wiki. For the example below, that would be
- --Saftzie (talk) 18:16, 31 October 2017 (UTC)
- Ok I think I understand, although the images are not on thameplayers.co.uk, but are on photos.google.com (but i guess I could move them to Instagram). However I keep getting "The text you wanted to save was blocked by the spam filter. This is probably caused by a link to a blacklisted external site."
- Have also tried adding a line "photos.app.goo.gl" to MediaWiki:External image whitelist but it makes no difference. Thame Theatre Technical (talk) 18:42, 31 October 2017 (UTC)
- The entry for wikipedia would be just
wikipedia\.org/
, not^https?://en\.wikipedia\.org/upload/b/bc/Wiki\.png$
. Don't use the^https?//
or\.png$
(or most of the rest of the stuff, unless you really, really want to restrict the path). - Can you give an example of a URL that makes your wiki give you that error?
- The entry for wikipedia would be just
- --Saftzie (talk) 18:45, 31 October 2017 (UTC)
- Actually no, it won't let me paste it here. But it's basically 'https://photos.app.goo.' & 'gl/nqekatjBM51hxFTp2'
Thame Theatre Technical (talk) 18:53, 31 October 2017 (UTC)https://photos.app.goo.gl/nqekatjBM51hxFTp2
is not an image URL. That's a "shortened" URL, which is really a redirect to a full web page. If you want to include an external image on a wiki page, you need the URL of the image itself. --Saftzie (talk) 20:36, 31 October 2017 (UTC)- So how do I do that for a photos/google image? There's no help anywhere on the settings or url needed. So far I've found 12 different urls for the same image page, but none for just the image, which is what I want to include within the wiki page. I can't be asking anything too difficult, i just want to include an image on a page that's stored in google. Can shoutwiki not do that? —The preceding unsigned comment was added by Thame Theatre Technical (talk • contribs) 21:15, 31 October 2017 (UTC). Please sign your posts with
--~~~~
!- MediaWiki, which is what ShoutWiki runs, can do that, but it needs the image URL, not the URL of a page that contains the image. For example, http://money.cnn.com/2017/01/20/media/hollywood-donald-trump/index.html is the URL of a web page. It contains the image http://i2.cdn.turner.com/money/dam/assets/170120150352-donald-trump-hollywood-780x439.jpg, which is a JPEG.
turner.com
is not on Hub's whitelist, so MediaWiki just puts a link to the image on this page. However, ifturner.com
were on Hub's whitelist, MediaWiki would put the image itself on this page. --Saftzie (talk) 21:31, 31 October 2017 (UTC)
- MediaWiki, which is what ShoutWiki runs, can do that, but it needs the image URL, not the URL of a page that contains the image. For example, http://money.cnn.com/2017/01/20/media/hollywood-donald-trump/index.html is the URL of a web page. It contains the image http://i2.cdn.turner.com/money/dam/assets/170120150352-donald-trump-hollywood-780x439.jpg, which is a JPEG.
- So how do I do that for a photos/google image? There's no help anywhere on the settings or url needed. So far I've found 12 different urls for the same image page, but none for just the image, which is what I want to include within the wiki page. I can't be asking anything too difficult, i just want to include an image on a page that's stored in google. Can shoutwiki not do that? —The preceding unsigned comment was added by Thame Theatre Technical (talk • contribs) 21:15, 31 October 2017 (UTC). Please sign your posts with
- Actually no, it won't let me paste it here. But it's basically 'https://photos.app.goo.' & 'gl/nqekatjBM51hxFTp2'