Forum:Lower case image extensions

From the RuneScape Wiki, the wiki for all things RuneScape
Jump to: navigation, search
Forums: Yew Grove > Lower case image extensions
This page or section is an archive.
Please do not edit the contents of this page.
This thread was archived on 10 April 2010 by Calebchiam.

This wiki is case sensitive on file names, and it is a real pain working with images with .PNG and .png being different.

I would suggest that the image upload policy be amended to the following, and this is based on the most common usages I've come across so far, so would basically be bringing images inline with the majority.

File Names

  1. use lower case extensions. For example .png rather than .PNG
  2. if the image name is multiple words then separate them with spaces, do not run them together or use hyphens. For example Ice amulet.png rather than Iceamulet.png

Ideally it would be nice if all file names were be lower case too - but for most images this isn't the case, so I'm not recommending that.   Aka Edge   03:52, March 21, 2010 (UTC)

Update The image upload page already runs a find-and-replace on spaces to underscores in the "Destination filename" input box. It would be trivial to lower case the suggested destination filename and then it wouldn't matter what the filename looks like on the user's machine. This would fix most images uploaded from now on, as most people probably don't change the default value.   Aka Edge   06:07, March 21, 2010 (UTC)


Comment - Due to some image editors can only have in .PNG format there is a harder time for those people. Twig Talk 772kZGs.png 03:58, March 21, 2010 (UTC)

Oh i forgot one thing per what I said im Opposing Twig Talk 772kZGs.png 04:19, March 21, 2010 (UTC)

Comment - If people are still uploading SD and jpeg images everyday, what makes you think they will abide by these rules? --Nup(T) 07:48, March 21, 2010 (UTC)

Oppose- A lot of people may have old computers and old systems which mean that they may not be able to do this, also there may be 2 pictures of the same thing but in different contexts then how do you separate them? That's not my best explanation but I can't think over a better way at the moment. Hunter cape (t).png Sentra246Blue hallowe'en mask.png 09:20, March 21, 2010 (UTC)

Oppose - When I save something as a PNG, it comes out as .PNG. I'm sure many many many people also have this, so why not make .PNG the standard? Because there's also a lot of people who can save things simply as .png. It wouldn't work. Ancient talisman.png Oil4 Talk 09:35, March 21, 2010 (UTC)

Comment - It doesn't matter what the files are saved as on people's own machines. They can use whatever programs and file names they like. All they need to do is change the "Destination File Name" box when they select the image. Sure, I understand there are plenty of users who will ignore this, but it's just a suggestion to make things easier (not harder) when working with images. Sentra's point about using case to distinguish different pictures is exactly my point too - Amulet.png and Amulet.PNG and aMulEt.PnG should not all be different things, use better descriptions like "unstrung amulet.png" and then when someone goes to include it on their page they'll get the right one, first time.

If I run a regex like this on list of item names: "(^.+$)" --> [ [ File:$1.png|$1 ] ] it should produce correct images more often than it currently does, because there isn't any guidelines on this at all at the moment. Aka Edge 20:35, March 21, 2010 (UTC)

Question - Why would we require this convention? You mentioned that working with .png and .PNG is a pain, but can you offer more specific reasons? This potential change would affect a lot of images and require a lot of file moves (hence a lot of work for admins). What are the benefits? If it's just personal preference, I don't think that justifies the change, if there's more, please let us know. Air rune.png Tollerach hates SoF Fire rune.png 21:20, March 21, 2010 (UTC)

Oppose - Useless. Not actually a pain Makxtrl Talk 02:57, March 22, 2010 (UTC)

Comment - Okies - I can see when I'm beat, and take it on the chin =D. I wasn't trying to make extra work, just add a suggestion/guide on the image upload page to get future images a bit more consistent. I guess most images only get used once, and by the people that uploaded them so image naming isn't a concern. I've been doing something slightly different and re-using a lot of the existing images, and it's been hard work trying to use them again. By "pain" I mean you have to either edit the section to copy the file name, or right click and 'save image location' for each one (then modify the full URL) because they don't follow any convention. It would be a lot easier to take a list of item names, run a regexp on them, and just have all the item images work. Here's some various examples of images in use at the moment:
[File:White medium helmet.png]
[File:Black medium helmet.PNG]
[File:M hat rtz.gif]

Anyway, 'nuff said - I'll write some better regexps =)   Aka Edge   07:56, March 22, 2010 (UTC)

Comment - Perhaps you should clarify that space = underscore, as when I first heard the proposal I instinctively thought, "Gah, spaces in filenames! NOOOO!" :P I'm a regular user and I approve this message.  TLUL Talk - Contribs 06:02, April 1, 2010 (UTC) 

Oppose - While I think it would be a good idea to encourage users to upload using relevant file names, I think this proposal takes the requirements too far. Obviously it's pain to have to deal with case sensitivity and spaces versus dashes, but being too strict means more administrative work. Also, undoubtedly a contributor will be notified if he breaks the naming conventions, which might discourage him from continuing to participate on the wiki. --Quarenon  Talk 04:25, April 3, 2010 (UTC)

Closed - The image policy will not be changed. C.ChiamTalk 04:44, April 10, 2010 (UTC)