Commons:Village pump/Technical/Archive/2020/08

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

"Last modified" bar on mobile view

Hi. In case anyone has noticed, there is currently a problem with the "Last modified" bar on mobile view; it is showing wikitext. This is being worked on. The relevant Phabricator task is phab:T259565. Ahmadtalk 03:25, 4 August 2020 (UTC)

This section was archived on a request by: Ahmadtalk 00:13, 7 August 2020 (UTC)

SVG size?

Hi! I just made an SVG (File:Canadian Atlantic Command formation patch.svg) in a text editor. It went well, except the file on Commons is a different size than the ViewBox is set to -- 512 × 366 when it should be 316 x 226. Why is this? Thanks, DemonDays64 (talk) 19:42, 3 August 2020 (UTC) (please ping on reply)

@DemonDays64: The view box was 316px by 226px, but you didn't tell MediaWiki how big a pixel was. viewBox defines the size of the SVG's coordinate system, not the displayed size of the viewport itself. Without a width and/or a height in <svg>, the standard requires that we use 100%. MediaWiki just happens to define 100% as 512px. --AntiCompositeNumber (talk) 20:28, 3 August 2020 (UTC)
@AntiCompositeNumber: ah, thanks! didn't realize those two things were separate. DemonDays64 (talk) 23:21, 3 August 2020 (UTC)
Checkmark This section is resolved and can be archived. If you disagree, replace this template with your comment. Dr. Schorsch (talk) 10:14, 20 August 2020 (UTC)

Where's the blacklisted domains list

I'm auto-filling the description of youtube videos if the uploader forgot to. I built an API to parse data from Youtube via the Internet Archive(tool forge IP is blocked by YouTube) and return the useful stuff but it would be great to remove all the blacklisted URLs before return the description. There's a bit.ly URL in https://eatchabot.toolforge.org/youtube?user_agent=YouTubeReviewBot&url=https://www.youtube.com/watch?v=j9V78UbdzWI and I would like to parse these out. // Eatcha (talk) 15:15, 4 August 2020 (UTC)

@Eatcha: There is a Commons-specific blacklist at MediaWiki:Spam-blacklist accompanied by a whitelist at MediaWiki:Spam-whitelist, and a Wikimedia-wide one at m:Spam blacklist (there’s no global whitelist). bit.ly is on the Meta blacklist. (Your Toolforge tool timed out for me, by the way.) —Tacsipacsi (talk) 17:18, 4 August 2020 (UTC)
Checkmark This section is resolved and can be archived. If you disagree, replace this template with your comment. Dr. Schorsch (talk) 10:13, 20 August 2020 (UTC)

Trouble downloading

First time user. Whenever I click download --> full resolution, the image enlarges, but no download. Please advise what to do. And if I'm not supposed to be asking this question here, please let me know where to go.

Thank you. — Preceding unsigned comment added by Clem1822 (talk • contribs) 21:37, 5 August 2020 (UTC)

Ctrl+s would make it be downloaded to your computer.Jonteemil (talk) 19:57, 10 August 2020 (UTC)
Checkmark This section is resolved and can be archived. If you disagree, replace this template with your comment. Dr. Schorsch (talk) 10:13, 20 August 2020 (UTC)

Tool for downloading spited images and merge them

I want to download some pictures. The only way to show highest resolution is to use zoom like [1]. It will give 0_0.jpeg to 22_16.jpeg. Is there a way to download the pictures and make them together automatically? Thanks.--維基小霸王 (talk) 14:34, 6 August 2020 (UTC)

There is a download symbol on this website. You have to register to download high resolution of this pictures. I guess this is the intention of the owner. It might be illegal to work around this mechanism. -- Dr. Schorsch (talk) 16:03, 6 August 2020 (UTC)
This is something that could be done with something like image magic, however, it will not be lossless. I'm not sure if that is possible to do it easily corretly. I seriously doubt that it can be illegal to merge files you have downloaded, but it maybe against their terms of use and you may be banned from their website. ℺ Gone Postal ( ) 16:21, 6 August 2020 (UTC)
@維基小霸王: https://ophir.alwaysdata.net/dezoomify/dezoomify.html is the common tool for this, and it does work with www.nationalgalleries.org. Your image: https://ophir.alwaysdata.net/dezoomify/dezoomify.html#https://www.nationalgalleries.org/art-and-artists/76444/min-choi-temple-and-octagonal-tower-wall-yen-ping?search=Afong%20Lai&search_set_offset=49 Theoretically, yes, they could ban you from their website for circumventing their controls. However, given that the photographer has been dead for 130 years, this image is squarely in the public domain. --AntiCompositeNumber (talk) 17:36, 6 August 2020 (UTC)
@AntiCompositeNumber: Thank you!--維基小霸王 (talk) 17:37, 6 August 2020 (UTC)
Checkmark This section is resolved and can be archived. If you disagree, replace this template with your comment. Dr. Schorsch (talk) 10:09, 20 August 2020 (UTC)

Who changed the WikiData object describing a file page?

Since a couple of days I receive a warning message when applying wikidata Property instance of (P31) to a file page. As an example file File:Muelheim an der Ruhr - Arion rufus - contraction.webm has a property instance of (P31) with the value video clip (Q677466). This was an accepted property until one day in the last week. Now I get a problem marker:

 Zulässige Entitätstypenbeschränkung
 Hilfe Diskussion
 Die Eigenschaft ist ein(e) sollte nicht auf diesem Objekttyp verwendet werden, die einzig gültigen Objekttypen sind:
   Wikibase-Element
   Wikibase property Englisch
   Lexem

If you click on the flash next to video clip (Q677466) on the file page you will see the message in your language. I think this happens because someone changed the allowed properties of a mediawiki file page.

My problem is that I do not exactly now, which wikidata object is defining the allowed properties of a mediawiki file page. If I would I could probably fix the problem itself. Does anyone now where this mistake can be fixed? -- Dr. Schorsch (talk) 15:08, 11 August 2020 (UTC)

@Xorx: If you click on "Zulässige Entitätstypenbeschränkung" in that marker, you'll be taken to the constraint that caused the problem, which is part of instance of (P31). It looks like this constraint was added by Dhx1 a few days ago[2]. --bjh21 (talk) 16:17, 11 August 2020 (UTC)
Thank you! -- Dr. Schorsch (talk) 20:02, 11 August 2020 (UTC)
@Xorx and Bjh21: It was a property constraint on Wikidata that was the cause for this issue. Fixed at [3]. --Dhx1 (talk) 23:00, 11 August 2020 (UTC)
@Dhx1: Thanks for the quick fix! -- Dr. Schorsch (talk) 07:24, 12 August 2020 (UTC)
Checkmark This section is resolved and can be archived. If you disagree, replace this template with your comment. Dr. Schorsch (talk) 10:09, 20 August 2020 (UTC)

search of a page for supplementary information on a photos file

Please, before my photos file be destroyed, help me to find the page for providing supplementary information about the source on this photos file. I was here for 3 hours without success. The photos file is already downloaded but the file may be destroyed soon if I do not find this page for supplementing infos. Please — Preceding unsigned comment added by Paule Juliette DeBeaumont (talk • contribs) 17:39, 12 August 2020 (UTC)

@Paule Juliette DeBeaumont: I think I fixed the problems for File:DeBeaumont, photographes, Musée national des Beaux-Arts du Québec (15 photos anciennes).pdf, assuming things to be okay now (but I will keep an eye on it). According to Commons:Copyright rules by territory/Canada, these pictures are certainly in the public domain. Eissink (talk) 18:16, 12 August 2020 (UTC).
Checkmark This section is resolved and can be archived. If you disagree, replace this template with your comment. Dr. Schorsch (talk) 10:12, 20 August 2020 (UTC)

Non-free logo template redirecting to the stupidest Fair use template. DELETE IT FOREVER!!!

THE "FAIR USE" TEMPLATE IS THE MOST STUPIDEST AND CRAPPY TEMPLATE ON COMMONS!!! ADMINISTRATORS, DELETE IT NOW SO I CAN ADD THE "NON-FREE LOGO" TEMPLATE (with no redirect) TO CLAIM MY FILES AS NON-FREE LOGOS! DesktopTech2020 (talk) 18:39, 16 August 2020 (UTC)

@DesktopTech2020: Commons accepts only free content. No fair use, and even less copyright infringement (i.e. non-free files not even qualifying as fair use). Thank you for your understanding. —Tacsipacsi (talk) 21:32, 16 August 2020 (UTC)
Checkmark This section is resolved and can be archived. If you disagree, replace this template with your comment. Dr. Schorsch (talk) 10:11, 20 August 2020 (UTC)

Is there an issue on my side or did the search box on Commons recently change its behaviour? On Wikipedia, when I type the title of some existing article into the search bar, say car, a menu appears, showing me (1) links to the article car and to articles with similar titles and (2), at the bottom, an option to do a full-text search for car. That used to be the same here on Commons. However, when I now search for car here, I'm getting (1) but no longer (2). Instead, there is now a "files depicting" section. Is there a way to get (2) back? I found that quite useful. — Pajz (talk) 16:37, 17 August 2020 (UTC)

@Pajz: Currently the default setting is that you get to the result list when pressing the search button (or the enter key), even if there’s an exact match. If you want to go back to the previous setting (redirect to the exact match upon search button/enter if there’s one, and always have a containing… section at the bottom), you can turn on Go to exact match when searching in your search preferences. —Tacsipacsi (talk) 17:32, 17 August 2020 (UTC)
Tacsipacsi, thanks, that fixes it! A rather counter-intuitive change of the default behaviour, if I may say so. — Pajz (talk) 20:50, 17 August 2020 (UTC)
Checkmark This section is resolved and can be archived. If you disagree, replace this template with your comment. Dr. Schorsch (talk) 10:12, 20 August 2020 (UTC)

15:42, 3 August 2020 (UTC)

16:06, 10 August 2020 (UTC)

Bug in UploadWizard?

When I use UploadWizard, the first round is okay, but every next upload, proceeding from 'Upload more images', after starting the upload I always get the message "You are already uploading etc." (but in Dutch, in my case: "U bent het bestand xxx.jpg al aan het uploaden"). This happens every time and has been going on for months, if not a year or longer. At first I thought it was due to an oversensitive mouse button, but it's not. Do other people also have this problem, and if so: could this be fixed? Thanks, Eissink (talk) 11:58, 9 August 2020 (UTC).

Is this it? Phabricator:T235542. — Sam Wilson ( TalkContribs ) … 21:35, 11 August 2020 (UTC)
Thank you, yes, that's exactly it. From the lack of responses it seems not everyone is experiencing it. Eissink (talk) 22:34, 11 August 2020 (UTC).
@Eissink: yeah! I'm not sure why not. I guess it's not that common to click 'Upload more files' — I use it all the time though, and it's really annoying! I'm not very familiar with the UploadWizard code, but I might try to fix it if no one does soon. — Sam Wilson ( TalkContribs ) … 04:34, 12 August 2020 (UTC)

Uploading duplicate file by wizard - bad message

When trying to wizard-upload a file which seems to be duplicate I get a buggy message with no variables expanded or links linkified:

A file identical to this file ([[:$1]]) has previously been deleted.  You
should check that file's
[https://commons.wikimedia.org/wiki/Special:Log/delete?type=delete&page={{urlencode:$1|WIKI}}
deletion history].  If you disagree with the reason for deletion, please
make an [[Commons:Undeletion requests|undeletion request]] instead of
re-uploading.

This obviously not helping, especially since I can't guess the name of the original, deleted file. Someone please give some love to the message, thanks! --grin 15:06, 13 August 2020 (UTC)

special:upload should give you the name of the file. This is bug phab:T246879.--Snaevar (talk) 20:59, 15 August 2020 (UTC)

20:40, 17 August 2020 (UTC)

Marking files superseded by a template?

I've reconstructed File:2007 US News Top 40 colleges.png as w:Template:U.S. News top 10. However, when I try to mark the 2007 file as {{Superseded}}, it wants to force me to use a filename. Is there any way to mark the file as superseded in the way I want? Sdkb (talk) 06:31, 5 August 2020 (UTC)

@Sdkb: You have to state the new file that supersedes the old one.Jonteemil (talk) 20:20, 10 August 2020 (UTC)
@Jonteemil: So I'm going to take that as indication that there's no current way to do what I want? That seems like something that should be fixed, since this isn't even the first time I've come across a file that was superseded by a graph. I'll put a pointer to here at the template's talk page. Sdkb (talk) 20:51, 10 August 2020 (UTC)
@Sdkb: Sorry, but what is it that you want? Can you please elaborate?Jonteemil (talk) 21:33, 10 August 2020 (UTC)
@Jonteemil: I created w:Template:U.S. News top 10, which is an updated/dynamic version of the old File:2007 US News Top 40 colleges.png. I want to mark the old file with a notice that anyone coming across it should probably use w:Template:U.S. News top 10 instead. Sdkb (talk) 21:36, 10 August 2020 (UTC)
@Sdkb: I think the way to achieve what you want probably lies in creating a local description on enwiki. On en:File:2007 US News Top 40 colleges.png there's a link to "Add a local description". I've never tried using it, but it would seem to be the obvious way to add a statement of supersession that would only appear on enwiki. You might want to ask in en:Wikipedia:Help desk for guidance, though. --bjh21 (talk) 10:07, 11 August 2020 (UTC)
@Sdkb: I've now created a local description on enwiki and moved the notice there. This seems to have worked properly, though I didn't find a dedicated template there either. --bjh21 (talk) 12:44, 20 August 2020 (UTC)

@Sdkb: You do realize that w:Template:U.S. News top 10 is not a file, right? Furthermore, since Wikimedia Commons is global project, and enwiki a local one, an enwiki file can't supersede a Commons file.

I do agree that File:2007 US News Top 40 colleges.png would be considered superseded on enwiki but on Wikimedia Commons we also have to take into account all the other thousands of wikis that hypothetically might be in use of the file.Jonteemil (talk) 21:45, 10 August 2020 (UTC)
  1. How can a template on en-wiki supersede a file on Commons? The former is specific to en-wiki; the latter can be used by any wiki in our system.
  2. How can something that shows a "top 10" be considered as necessarily superseding something else that shows a "top 40"? They are clearly not interchangeable.
- Jmabel ! talk 02:37, 11 August 2020 (UTC)

Prevent automatic section int:filedesc on upload

Hello,

because I have my own description template to simplify some useful informations (camera, location etc.), I use the blank upload form (&uploadformstyle=basic). My template already includes == {{int:filedesc}} == (and == {{int:license-header}} ==, too), which was no problem so far. But newly the basic upload form automatically adds the section int:filedesc on top, which is very annyoing, because I have to edit each new file page and remove it manually. Isn't there a possibility to prevent this? I already use the basic form excactly to have no unnecessary additions, and for those who need the section they can use the button in the click-and-paste-bar below the text field.

By the way, why don't we have a preview here like at dewiki? Would be very useful.

Thanks and regards --MdE [de] [com] 09:19, 6 August 2020 (UTC)

  • We have preview on basic upload, I use it all the time, but you have to select the file and the name of the file before it will work. Also keep in mind that it will show all the category links in blue, even if they do not exist, so it doesn't help to check if categories are typed correctly. Also for me the top header has been adding itself since I have started here. As I can see it works in the following way, it adds == {{int:filedesc}} == as th first line, unless your first line is exactly that text (with spaces in those spots, etc.) if your approach adds a slightly different string, then perhaps it is misdetecting it, make sure that you do that exactly. ℺ Gone Postal ( ) 15:16, 11 August 2020 (UTC)
@Gone Postal: First, I ment a preview of the description, not of the image! In order to check article links etc. (categories are no problem, existing ones are suggested and non-existing ones become red). Second, the first line in the description will always be my template and not int:filedesc even though the first line inside my template exactly matches the string as you mentioned. Isn't there any possibility to disable automatic adding manually? --MdE [de] [com] 21:33, 11 August 2020 (UTC)
@MdE: Yes, I meant the description. What are you talking about? You clearly read me talking about categories, and they are not on the file itself, but in the description. I am confused, did you read what I have written or not? As for the addition of the heading, it should be the first heading anyhow, it is quite a bad idea to add things before it. So simply remove that heading from whatever template you are using to fill in all the fields, and the problem is solved. ℺ Gone Postal ( ) 04:59, 12 August 2020 (UTC)
@Gone Postal: You wrote “it will show all the category links in blue, even if they do not exist” and that is wrong. Links to not existing categories are red. There is a group box File description on the upload formular, containing Destination filename, Summary, some edit tools, Licensing and then Categories (looks the same like HotCat). And this Categories section is very user-friendly because you can check the spelling before upload. But that was not the problem. What I need would be a whole page preview for the summary to check article links to enwiki or dewiki, not categories.
You also wrote “So simply remove that heading from whatever template you are using to fill in all the fields, and the problem is solved.” - But who or what then solves the problem, that hundreds of my files are missing the == {{int:license-header}} ==, which whas included by my template?! I asked how to get ridd of the line, and you suggest keeping it... --MdE [de] [com] 14:04, 20 August 2020 (UTC)
I am sorry, are you OK? Did you try the preview with a non-existent category? Please provide a video recording of you doing so and getting a red link, otherwise I will assume that you are wasting my time. ℺ Gone Postal ( ) 14:08, 20 August 2020 (UTC)
@Gone Postal and MdE: After some experimentation, I think the confusion here is that Gone Postal has the ImprovedUploadForm gadget turned on, and MdE has it turned off. If it's turned on then even the basic upload form gets a "Preview" button, but the preview generated by that button gets the colour of category links wrong. You can turn the gadget on in Special:Preferences. --bjh21 (talk) 15:14, 20 August 2020 (UTC)
@Bjh21: Thanks. Because I was thinking that either I was insane or the user was going in that direction. It felt like we were speaking a different language. @MdE: Sorry for probably sounding too grouchy, I really did not understand what was happening. ℺ Gone Postal ( ) 15:19, 20 August 2020 (UTC)
@Gone Postal and Bjh21: Oh yes, thank you, this caused the big misunderstanding :-O Seems to be a very nice gadget, but still lacks some especially for me useful possibilities that my own template supports. So I'm still searching for a possibility to turn off the automatic insertion in the basic upload form that was intended to be a blank form for experienced users... --MdE [de] [com] 14:24, 22 August 2020 (UTC)

Add to watchlist

Hello!

Can you make files that you request be renamed, with RenameLink, to be added to your watchlist automatically?Jonteemil (talk) 19:56, 10 August 2020 (UTC)

Probably your request may get better feedback at the gadget's discussion page: MediaWiki talk:Gadget-RenameLink.js. – Ammarpad (talk) 06:40, 23 August 2020 (UTC)

17:58, 24 August 2020 (UTC)

Language showcase about module translation

Hi!

It's not the usual yadda-yadda.

This Wednesday, August 26 at 12:00 UTC there will be an online meeting on the topic of localizing Scribunto Lua modules. Posting it here because the Commons wiki will be one of the wikis that will likely be most directly affected by this project.

More about this event: mw:Wikimedia Language engineering/Showcase.

All editors are invited, especially all those who:

  • Develop modules and templates in any wiki, particularly the multilingual ones such as Wikidata, Commons, Meta, and mediawiki.org.
  • Translate software and pages using the Translate extension on translatewiki.net, Meta, mediawiki.org, etc., and manage translatable pages.
  • A little intro can be found at Phabricator task T238417, and much more information will be given at the meeting.

Thanks! --Amir E. Aharoni (WMF) (talk) 20:25, 24 August 2020 (UTC)

Time change

Hi,

I've been feeling very unwell today, and since I'm the main host and presenter in this meeting, I have to postpone this meeting to next week.

New time: Sep 2, 2020 02:00 PM UTC. Zoom link: https://wikimedia.zoom.us/j/95167235390

I am terribly sorry about the late notice and about the spam, but these circumstances are out of my control. Thanks for understanding, and I hope to see you at the new scheduled time! :) --Amir E. Aharoni (WMF) (talk) 08:42, 26 August 2020 (UTC)

Change that breaks layout

See m:Tech#Change_that_breaks_layout.--GZWDer (talk) 02:12, 27 August 2020 (UTC)

Mass undeletion

As a result of the COM:PDM update, there are now many candidates for mass undeletion, e.g. Commons:Deletion requests/Files found with hastemplate:"CC-BY" insource:flickr insource:/"reviewlicense=Public Domain Mark"/, where being licensed under the PDM was the sole reason for deletion. Is there a script to assist in this? -- King of ♥ 21:07, 27 August 2020 (UTC)

@King of Hearts: There is a "Restore-a-lot" gadget (MediaWiki:Gadget-Restore-a-lot.js), have you tried it? Ahmadtalk 00:38, 29 August 2020 (UTC)
Ah, wonderful, thanks! -- King of ♥ 06:30, 29 August 2020 (UTC)

Hi, it seems that this BOT is not doing its full job since the 25-08-20, it has stopped from to notify users, to extract nomination from the candidate list and to add the atgs to the images. A message have been put at the BOT operator talk page, but they are not very active, if someone has an idea they are welcome. Christian Ferrer (talk) 06:13, 30 August 2020 (UTC)

CSS fix for mobile Commons

Currently, the special:UploadWizard's layout is pretty much unusable with mobile devices which are using MinervaNeue skin. Biggest problems are Minerva's a two-column layout and fixed minimum width which can be fixed with custom CSS. Here is my attempt for it.

Currently, the missing pieces are the last tab for Structured data which almost works but it is a little bit too wide and navigational arrows are too big. However, with those changes, it is usable with a mobile web interface and this just for sharing the CSS for testing/comments.

Also, I would like to ask what we should do to fix it for everybody? Should we do the PHAB tickets to fixing the UploadWizard in upstream OR create CSS gadget (which may be enabled by default?) and then push the fixes to upstream? --Zache (talk) 12:04, 30 August 2020 (UTC)

I made a ticket for fixing the upload wizard to phab (phab:T261589). --Zache (talk) 02:20, 31 August 2020 (UTC)

Mirror images

Hi. Is there a tool like Rotatebot or CropTool to fix mirror images, i.e. flip them along the central horizontal or verical axis? Or perhaps a tag/template to indicate that an image is mirrored? For example: this one is correct, but this and this photo of the same scene are not (compare the rocky peaks with this 360° image). --HyperGaruda (talk) 14:53, 30 August 2020 (UTC)

20:07, 31 August 2020 (UTC)

'Noise' in samples...

I noted that the sample here contained a lot of background noise.

Whilst in some instances it's useful to retain this, generally audio vocal samples should ideally reduce 'noise' in the sample as much as possible.

Is there a tag for marking samples for 'audio-cleanup' so that contributors with the appropriate expertise and tools can produce "noise reduced" samples? ShakespeareFan00 (talk) 09:13, 21 August 2020 (UTC)

Aside - It would also be nice to know if there are 'free' and unencumbered algorithms that could be used to accomplish noise reduction ( The best one I found was proprietary, and not entirely lossless.)

ShakespeareFan00 (talk) 09:13, 21 August 2020 (UTC)

@ShakespeareFan00: Audacity is free software and has noise reduction plugin by default. But I am unsure what you mean by lossless, since noise reduction algorithm will be lossy by the very definition, unless you can do that in metadata somehow... ℺ Gone Postal ( ) 18:51, 8 September 2020 (UTC)
All noise reduction will have some loss, but some algorihims are smarter. ShakespeareFan00 (talk) 18:56, 8 September 2020 (UTC)
The way newer versions of Audacity do that works quite well for me. But you need to give it an example of what it should consider as noise. And sometimes if all the audio has something actually happening it may not be ideal, you have to find at least half a second of silence (or what should have been silence if there were no noise). ℺ Gone Postal ( ) 18:58, 8 September 2020 (UTC)

Text Inconsistencies

There are two images on this page: https://en.wikipedia.org/wiki/Karl_Widerquist The first image is the one that has the problem: the description of the image 1 (Karl Widerquist, Al Jazeera interview, 2016) is not showing right underneath the image, even though it looks fine on Wikimedia. In the second image, the description is right underneath it. Can you please help me fix the first image description to show and look like the second image description? — Preceding unsigned comment added by Independent03 (talk • contribs) 2020-08-31T06:57:51 (UTC)