Teammates,
We would like to use the capability of $wgAllowExternalImages from http://www.mediawiki.org/wiki/Manual:Linked_images#External_image_syntax
however, some of the images we would like to display do not have an extension in the filename, even though they are *.jpg. So for example, the *.jpg might simply be named "StacyPic".
Can you think of any clever way to get around this issue ? We are using MW 1.15.3.
Thank you, L
On Fri, Oct 7, 2011 at 6:49 AM, Rowe, Dolores A dolores.a.rowe@boeing.comwrote:
We would like to use the capability of $wgAllowExternalImages from http://www.mediawiki.org/wiki/Manual:Linked_images#External_image_syntax
however, some of the images we would like to display do not have an extension in the filename, even though they are *.jpg. So for example, the *.jpg might simply be named "StacyPic".
Can you think of any clever way to get around this issue ? We are using MW 1.15.3.
You may be able to hack something like sticking '?.jpg' on the end of the URL -- the ? adds a query string which the server (hopefully) will ignore but the old $wgAllowExternalImages code will think is an extension.
Better though would be a proper extension for embedding external images, which could also do nice things like let you set size...
-- brion
MediaWiki 1.17.0 supports the <img> tag.
http://www.mediawiki.org/wiki/Manual:$wgAllowImageTag
That might be a better alternative for you. (Personally I hate the $wgAllowExternalImages behavior.)
DanB
Hello, I started using external images on a wiki because for some reason, this wiki isn't allowing uploads. I have done everything to allow it. I have several MW sites, same version that are setup the same. However, on one wiki I get an error. It says it is uploaded but I don't see the image, then when I click on the link to the image itself, I get a 403 Forbidden error. I'm baffled. Can someone setup an account here and take a look: http://wordsaladpoetrymagazine.com/wiki/Main_Page and see if you can help me figure this out. It is so frustrating. I will have to upgrade your account to admin and give server access to someone who will be willing to help me. PLEEEEAAASSSSEEE HELP! Bruce
-----Original Message----- From: Daniel Barrett Sent: Friday, October 07, 2011 2:01 PM To: MediaWiki announcements and site admin list Subject: Re: [Mediawiki-l] Help with External Images Display
MediaWiki 1.17.0 supports the <img> tag.
http://www.mediawiki.org/wiki/Manual:$wgAllowImageTag
That might be a better alternative for you. (Personally I hate the $wgAllowExternalImages behavior.)
DanB
_______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
403? See where in your directory structure the image ends up and check whether the access privileges for the folders look different from the ones where it works
B.
On 2011-10-08, at 19:26, "Bruce Whealton" bruce@whealton.info wrote:
I get a 403 Forbidden error.
I just set the permissions to 666 for the images folder. My hosting provider said that giving it 777 would prevent things from working, not that it would have more than enough permission. Ok, so I tried to load the file and this is what I got: Forbidden
You don't have permission to access /w/images/d/d3/BruceCloseup.jpg on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. I could try giving it the permission: 755, as that is what I see on the MW install that works. However, I also see the images appearing on the pages themselves, e.g. File:BruceCloseup.jpg Actually, that seems to have done it! Wow. I did a set permission to 755 on the images folder and then told it to do this recursively into the files and folders and now it works. Thanks, Bruce
-----Original Message----- From: Boris Steipe Sent: Saturday, October 08, 2011 4:35 PM To: MediaWiki announcements and site admin list Subject: Re: [Mediawiki-l] Help with External Images Display
403? See where in your directory structure the image ends up and check whether the access privileges for the folders look different from the ones where it works
B.
On 2011-10-08, at 19:26, "Bruce Whealton" bruce@whealton.info wrote:
I get a 403 Forbidden error.
_______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
On Sat, 2011-10-08 at 19:21 -0400, Bruce Whealton wrote:
I just set the permissions to 666 for the images folder. My hosting provider said that giving it 777 would prevent things from working, not that it would have more than enough permission. Ok, so I tried to load the file and this is what I got: Forbidden
You don't have permission to access /w/images/d/d3/BruceCloseup.jpg on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. I could try giving it the permission: 755, as that is what I see on the MW install that works. However, I also see the images appearing on the pages themselves, e.g. File:BruceCloseup.jpg Actually, that seems to have done it! Wow. I did a set permission to 755 on the images folder and then told it to do this recursively into the files and folders and now it works. Thanks, Bruce
-----Original Message----- From: Boris Steipe Sent: Saturday, October 08, 2011 4:35 PM To: MediaWiki announcements and site admin list Subject: Re: [Mediawiki-l] Help with External Images Display
403? See where in your directory structure the image ends up and check whether the access privileges for the folders look different from the ones where it works
B.
On 2011-10-08, at 19:26, "Bruce Whealton" bruce@whealton.info wrote:
I get a 403 Forbidden error.
--------------------------------------------------- go to your wiki's directory /yourwikiname/images/ and set it to 775. that directory is where mediawiki changes the external or internal images to "thumbnails" & does the image conversions it uses to make all images that you use work on the wiki. Hope this helps.
mediawiki-l@lists.wikimedia.org