Commons:Village pump/Technical

Shortcuts: COM:VP/T· COM:VPT

Community portal
introduction
Help deskVillage pump
copyrightproposalstechnical
Administrators' noticeboard
vandalismuser problemsblocks and protections
Welcome to the Village pump technical section

This page is used for technical questions relating to the tools, gadgets, or other technical issues about Commons; it is distinguished from the main Village pump, which handles community-wide discussion of all kinds. The page may also be used to advertise significant discussions taking place elsewhere, such as on the talk page of a Commons policy. Recent sections with no replies for 30 days and sections tagged with {{section resolved|1=~~~~}} may be archived; for old discussions, see the archives.

Please note
 
SpBot archives all sections tagged with {{Section resolved|1=~~~~}} after 1 day and sections whose most recent comment is older than 30 days.

Prevent automatic section int:filedesc on uploadEdit

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, 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, 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 watchlistEdit

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)

'Noise' in samples...Edit

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)

Tech News: 2020-35Edit

17:58, 24 August 2020 (UTC)

Language showcase about module translationEdit

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 changeEdit

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 layoutEdit

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

Mass undeletionEdit

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)

User:VICbotEdit

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 CommonsEdit

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 imagesEdit

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)

Text InconsistenciesEdit

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)

Tech News: 2020-36Edit

20:07, 31 August 2020 (UTC)

Why is the captions header AFTER the captions box?Edit

This is what I'm talking about, is the view similar for you? (Just look at any pic on commons.)
 
Seems like putting the cart before the horse to me. (Captions on Commons) --Palosirkka (talk) 08:19, 5 September 2020 (UTC)

Tech News: 2020-37Edit

15:59, 7 September 2020 (UTC)

Big files uploadEdit

I have been trying to upload these five big files but failed. Can anyone help to upload? Please upload using the original name and I will fill in the details. They are in public domain.

Download link: https://pan.baidu.com/s/1Q2-PhHpYflSCS4UTVTN72w code: sp9w

--維基小霸王 (talk) 06:14, 8 September 2020 (UTC)

@: Would you help please? --維基小霸王 (talk) 14:23, 8 September 2020 (UTC)
Took a look, but though I can see the contents online, I cannot download the files without installing baidu weird apps on my computer. In the light of recent increases in Trojans, not going to do that.
However without having to touch these myself, I can point you to this likely source of the problem which makes uploading pdfs or djvu files of large sizes potentially un-uploadable.
I could also customize my IA uploader time-boxing process which endlessly keeps on forcing the WMF servers to try to accept the documents, however that is not guaranteed to work for some files, plus it would have to wait on me being interested in making a version which takes a local list of files, which is of limited use. -- (talk) 19:09, 8 September 2020 (UTC)
@:Can you download from Google Drive? https://drive.google.com/file/d/10X_UDkzhl0k0WpBPEDqp-0FF9jadAPqr/view?usp=sharing, https://drive.google.com/file/d/19AntN1HavChxiO0s1Qb_-P2N1JBag6hl/view?usp=sharing, https://drive.google.com/file/d/1LdArETdrWrl-G8sE0JaHNbGftGKWJG9T/view?usp=sharing, https://drive.google.com/file/d/1mNoIsMksFqzoOZosbjIE0H-Y1ITnTLLW/view?usp=sharing, https://drive.google.com/file/d/1n_T5yzzTDNkcecz08OZIRZDyRTdMO25I/view?usp=sharing
Notably, two of the files are the only left in my batch of Category:Scans from the China Academic Digital Associative Library. After your help, my complete archive downloaded from baidu will be completed upload.--維基小霸王 (talk) 13:20, 9 September 2020 (UTC)
Will do a test. Not sure any will be up-loadable due to WMF server bugs. It'll take a while, even locally caching a file is taking a long time. Keep in mind my antiquated computer (follow link if you want to support me getting a second hand laptop from the WMF). -- (talk) 15:22, 9 September 2020 (UTC)
Thanks! Supported. --維基小霸王 (talk) 01:42, 10 September 2020 (UTC)
Failing so far, sequential upload runs already lasting over 90 mins a time. It seems fairly likely the cause is T254459 which probably will stop most multi-page files that are 'large' depending on exact encoding method. If exceptionally valuable, it may be worth re-compiling the documents in a way that the WMF servers might find easier to process. See this residual log for some large files that did eventually get uploaded, though the largest to succeed recently was 1,706MB. I cannot safely run more than two in parallel due to memory and potential for over-heating issues.
  1. File:CADAL06200030_嘉興府志.djvu 1,731MB
  2. File:CADAL06200072_杭州府志.djvu 1,128MB
  3. File:25资治通鉴.pdf 1,135MB
  4. File:CADAL06200076_處州府志.djvu 870 mb
  5. File:20宋史.pdf 831 mb
Update Adapted programme to run through these sequentially, so only attempting one at a time. Each time-out or failure it moves to the next in a loop. An alternative for you to examine is manually processing these documents to break up the file into sections, perhaps keeping the sub-section files down to 100MB. In the past I have manipulated PDFs with Libre Open Office, which has a archive compliant PDF export built-in. It's an awkward work-around but seems to be effective for individual files. -- (talk) 10:31, 10 September 2020 (UTC)
May be I should try to split the files. --維基小霸王 (talk) 00:35, 11 September 2020 (UTC)
There have been 8 completed upload attempts for every file, of which half have been for more than an hour long time-box. This uses a chunked upload with chunk size of a smaller than normal 400000 (400K), to limit issues from connection problems. This is the same configuration as the IA books uploads. As size is not necessarily of itself the reason these do not get accepted, I'll let it continue for a while, but it seems unlikely that any will be uploaded given the WMF server bug. -- (talk) 07:11, 12 September 2020 (UTC)
@: Thank you for your efforts. I have uploaded these files after splitting them. --維基小霸王 (talk) 12:22, 14 September 2020 (UTC)
They are on loop 19, though I noticed that at least one of these gave up after no attempt due to some sort of connection drop out. Haven't stopped it yet, I'll probably abandon the process this evening. -- (talk) 13:07, 14 September 2020 (UTC)

Blurry thumbnailEdit

 
Puerto Varas

Gallery thumbnails of this file seem to be blurry, although the file itself has a good quality. What can be causing that? I've tried to purge cache and I've made a null edit, but nothing helps. — Draceane talkcontrib. 19:42, 8 September 2020 (UTC)

Redlink colorEdit

Has anyone noticed that a change in the color of redlinks? It used to be the same as English Wikipedia, which is still #ba0000, but now it appears to be #dd3333. -- King of ♥ 22:47, 9 September 2020 (UTC)

@King of Hearts: Yes! It's kind of strange. — Draceane talkcontrib. 10:37, 10 September 2020 (UTC)

SVGs with textpathEdit

Hi! I realized that the textpaths on this SVG I traced and uploaded don't display in the PNG that shows on pages. How can I fix this? Font compatibility is not the problem as far as I can tell. DemonDays64 (talk) 05:46, 12 September 2020 (UTC) (please ping on reply)

ΜακεδονίαEdit

Why are the images overunning the container and the nominal translations collapsing EVEN after I close up the mismatched tags? Suggestions? ShakespeareFan00 (talk) 16:55, 12 September 2020 (UTC)

@ShakespeareFan00: which images? DemonDays64 (talk) 18:41, 12 September 2020 (UTC)
Subsequqnt to the above request User:Izno provided a repair. ShakespeareFan00 (talk) 18:42, 12 September 2020 (UTC)

Tech News: 2020-38Edit

16:17, 14 September 2020 (UTC)

tiffinfo command failed: '/usr/bin/tiffinfo' '/tmp/phpUgvD6T' 2>&1Edit

I tried to upload the tif I got from https://phil.cdc.gov/Details.aspx?pid=12505 "Click here for hi-resolution image (7.96 MB)". Uploadwizard tells me the error code in the section title. Can someone knowledgeable upload the photo for me? Thanks!--RZuo (talk) 16:57, 14 September 2020 (UTC)

@RZuo: There's a reason that TIFF has the nickname "Thousands of Incompatible File Formats". Instead of breaking out the hex editor and trying to figure out what exactly was wrong with the encoding and if it could be fixed, I just converted the file to JPG. File:Partial Deletion of Short Arms of 5.jpg. --AntiCompositeNumber (talk) 17:26, 14 September 2020 (UTC)

How to remove watermark layer in PDF using Python?Edit

I want to remove watermark layer in PDF using Python. The watermark layer is an image inserted to every page. Some times text were inserted. They can be removed by Acrobat but it's not realistic for a huge number of pages. Is there a way to remove automatically using Python? This has to be done in WMF server with limited RAM.--Public domain book uploader (talk) 06:28, 15 September 2020 (UTC)

VICbotEdit

It has come up at VIC that User:VICbot is not working. Its operator, Dschwen has been largely inactive for the past couple years. Anyone around that might be able to take on this task? Ongoing discussion here: Commons_talk:Valued_image_candidates/candidate_list#Problem_in_VI_:_news_of_the_dayRhododendrites talk |  21:06, 16 September 2020 (UTC)

Deletion requests tag templateEdit

"Do not delete this tag until the deletion nomination is closed." This is a wrong expression. It should be: "Do not remove this tag until the deletion nomination is closed." I do not know where to find and edit the template. Can one of my followers kindly take the initiative please? Thanks in advance. --E4024 (talk) 15:24, 19 September 2020 (UTC)

@E4024:   Done in Special:Diff/464999764 --AntiCompositeNumber (talk) 15:54, 19 September 2020 (UTC)

Tech News: 2020-39Edit

21:25, 21 September 2020 (UTC)