Commons:Village pump/Technical/Archive/2023/05

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

CommonsHelper has been down for a while

CommonsHelper has been giving a 504 gateway timeout error for around two weeks. The GLAM tools also had the same issue, but are now back up. However, the same cannot be said for CommonsHelper. Is anyone looking into this? Ixfd64 (talk) 01:46, 14 May 2023 (UTC)

use mw:Help:Extension:FileImporter.--RZuo (talk) 18:31, 14 May 2023 (UTC)
It's back up now. Ixfd64 (talk) 22:57, 17 May 2023 (UTC)
Checkmark This section is resolved and can be archived. If you disagree, replace this template with your comment. Ixfd64 (talk) 22:59, 17 May 2023 (UTC)

Visual File Change is not working

Visual File Change is not working, see Help_talk:VisualFileChange.js#it_is_not_working . plz fix it, i cant mark copyvio files easy as old times. it really helps, but now its not working..

in 24 may 2023 it stopped working but later working again. but since yesterday its stopped working again.... ----modern_primat ඞඞඞ TALK 13:08, 27 May 2023 (UTC)

Did anyone report this on Phabricator? This JS tool is also broken. Yann (talk) 15:36, 28 May 2023 (UTC)
This section was archived on a request by: —‍Mdaniels5757 (talk • contribs) 02:17, 29 May 2023 (UTC)

I have a couple problems here. First is the one reported by @Ricky81682 above: the code only checks back to 5000 BC, but some categories go back further than that. Also, adding more centuries means adding more expensive function calls. Is there a way to get a list of all extant subcategories of a category? This could be filtered and used to determine the starting point when showall = true, and used in place of mw.site.stats.pagesInCategory when showall = false.

Second, at the moment the category links aren't being interpreted as links; see {{Subject by century/sandbox}}. How can I fix this? —CalendulaAsteraceae (talkcontribs) 01:05, 1 May 2023 (UTC)

@CalendulaAsteraceae Or we create a smaller template uniquely for this case? Ricky81682 (talk) 01:33, 1 May 2023 (UTC)
@Ricky81682: I added an optional minimum century parameter to the module, which fixes this problem. (I would still like a better algorithm if feasible.) —CalendulaAsteraceae (talkcontribs) 01:50, 1 May 2023 (UTC)

Tech News: 2023-18

MediaWiki message delivery 01:43, 2 May 2023 (UTC)

Downloading images in OpenSeadragon?

does anyone have experience in getting the original hi res images inside OpenSeadragon? i'm trying to download the source files (dont know if they are images or pdfs) of old hk newspapers, like https://mmis.hkpl.gov.hk/coverpage/-/coverpage/view?_coverpage_WAR_mmisportalportlet_hsf=Hong+Kong+Daily+Press&_coverpage_WAR_mmisportalportlet_actual_q=%28%20all_dc.title%3A%28%22Hong%5C%20Kong%5C%20Daily%5C%20Press%22%29%29%20AND+%28%20verbatim_dc.collection%3A%28%22Old%5C%20HK%5C%20Newspapers%22%29%29&_coverpage_WAR_mmisportalportlet_sort_field=dc.publicationdate_bsort&p_r_p_-1078056564_c=QF757YsWv5%2F6rByrziBvQzxON8TH4X4a&_coverpage_WAR_mmisportalportlet_o=0&_coverpage_WAR_mmisportalportlet_sort_order=asc . RZuo (talk) 12:07, 3 May 2023 (UTC)

Copying SVG images as JPGs, and poor handling of transparency.

Common problem, but here's just one typical example: File:Oxygenation-atm-2.svg

This is a line chart (any diagram has the same issue) drawn as an SVG. PNG thumbnail versions are linked conveniently, in different sizes. Hand-editing the link extension even gives JPGs.

The problem is that this SVG is transparent (whether it ought to be entirely so is another question). The PNGs are transparent too. But the "default rendering colour" for that transparent is black, rather than white. This is the opposite of behaviour for the main use case on Wikipedia, where they're placed onto a white background.

The result of this is that there's no simple way to copy and paste such an image into most of the widespread social media platforms. It'll be rendered as a black rectangle instead.

Even when thumbnailed as a JPG (i.e. with no transparency) the outcome is the useless black rectangle (and surely as a JPG there's no reason for that behaviour at all).

The MediaWiki behaviour when rendering transparent bitmaps such as this should be to give a useful output. That would involve changing the implied background colour (even when transparent) to be white, not black, thus downstream renderers that don't implement transparency would at least give a visible image. Especially so for a JPG render here, as transparency has to be flattened at that point anyway.

This would make the thumbnailing behaviour more consistent with the publishing approach on Wikipedia, it would also make the thumbnails for generally useful for readers who are re-using these images off-Wikimedia. Andy Dingley (talk) 10:15, 3 May 2023 (UTC)

So in other words, you're proposing fully transparent areas in PNG thumbnails to be encoded as #ffffff00 instead of #00000000? -- El Grafo (talk) 11:12, 4 May 2023 (UTC)
Something like that, yes (I'm not a bitmap format expert). This should be a no-effect change to anything that supports transparency, and an improvement to those that don't. Andy Dingley (talk) 11:32, 4 May 2023 (UTC)

Tech News: 2023-19

MediaWiki message delivery 00:34, 9 May 2023 (UTC)

UploadWizard Flickr uploading feature

When using the feature that allows you to upload Flickr images to commons with UploadWizard, UploadWizard does not state the title of a Flickr work. The versions of cc-by and cc-by-sa that flickr uses clear state that when attributing a work you need to provide "the title of the Work if supplied", Why doesn't UploadWizard do this? Flickr2commons already has this feature... Teneab (talk) 15:40, 10 May 2023 (UTC)

Best way to search for a user's assessed uploads?

by "assessed uploads" i mean "Featured pictures, Quality images, or Valued images". Help:FastCCI can do this on a category. what if i want to do that about a user? if the user didnt put his/her uploads in a category.

i only know using CirrusSearch tricks to find one kind at a time, but dont know a way to find all 3 kinds (and possibly featured media and so on) at the same time. RZuo (talk) 16:02, 10 May 2023 (UTC)

@RZuo: perhaps PetScan with union of image categories and which link to specific user page: [15] MKFI (talk) 08:39, 11 May 2023 (UTC)
@RZuo: in Wiki's advanced search function, have the main search look for the author's name (as it would appear in the description template), while simultaneously looking for featured_pictures quality_images valued_images in the advanced search parameter "one of these words". --HyperGaruda (talk) 19:53, 15 May 2023 (UTC)

Tech News: 2023-20

MediaWiki message delivery 21:42, 15 May 2023 (UTC)

Commons:MyGallery/MediaWiki:JSONListUploads.js

Commons:MyGallery which is using MediaWiki:JSONListUploads.js does not work anymore for me. Can someone confirm this? — Speravir – 23:04, 27 May 2023 (UTC)

Thank you, Yann, for creation of the bug report. This would have been my next step, as well, but I first wanted to get some confirmation. — Speravir – 21:41, 28 May 2023 (UTC)

Edited thread (22:05, 29 May 2023 (UTC)), these points aren't answered yet:

— Speravir – 23:04, 27 May 2023 (UTC)

This section was archived on a request by: Speravir 22:39, 13 June 2023 (UTC)

Demande pour téléverser un fichier avec l'extansion .odt

Bonjour,

J'aimerais téléverser un fichier odt contenant une image, mais un message s'affiche, exposant qu'il n'est pas possible de verser des fichiers avec l'extension .odt, pourquoi? en effet, j'ai moi-même créé ce fichier, je ne vois donc pas la raison de ce refus.

Bien cordialement et en espérant être assez explicite, Yulan de Rê (talk) 17:31, 14 May 2023 (UTC)

odt files are not accepted. see com:file types.
please upload the image directly using Special:UploadWizard.
google translation:
les fichiers odt ne sont pas acceptés. voir Commons:File_types/fr.
veuillez télécharger l'image directement à l'aide de Special:UploadWizard.--RZuo (talk) 18:31, 14 May 2023 (UTC)
@Yulan de Rê: ça veut dire qu'il faut extraire l'image du fichier .odt et l'enregistrer au format .jpg (photos) ou .svg/.png (images schématiques). J'espère bien que vous êtes aussi l'auteur original de l'image et pas seulement du fichier .odt. Si non, ça peut être regardé comme une violation des droits d'auteur. --HyperGaruda (talk) 20:12, 15 May 2023 (UTC)
Merci @HyperGaruda! Bon après-midi. Yulan de Rê (talk) 10:34, 16 May 2023 (UTC)

I recently uploaded a file: File:Manchester Metropolitan University Business School.png, and it seems to have quite a bit of chromatic aberration could anyone fix this for me? The target areas are mainly on the left, including the person's body, and the top left of the image's corner. Thanks, Please use the {{Reply to}} template when replying. 多多123 13:43, 21 May 2023 (UTC)

@多多123: Ask at: Commons:Graphic Lab. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 14:29, 21 May 2023 (UTC)
Thanks. 多多123 15:35, 21 May 2023 (UTC)

How to rename files?

Hi

How can I change filesnames?

Like changing file:Waverly Council Chambers.jpg to "Waverley Council Chambers.jpg"

How can I change folders' names?

Like changing folder's name of "Category:Centennial Park, Woollahra Gate from Oxford Street" to "Category:Centennial Park, Woollahra Gates from Oxford Street". I also need to change Category:The Offerings of War and Peace to "Category:The Offerings of War and Peace statues". Shkuru Afshar (talk) 12:56, 17 May 2023 (UTC)

@Shkuru Afshar: See:
respectively. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 14:28, 21 May 2023 (UTC)
Thank you Shkuru Afshar (talk) 12:46, 22 May 2023 (UTC)

Vertical-oriented text created in Inkscape not visible

I created File:Four Sons of Horus coffin diagram.svg in Inkscape. The second half of the diagram, the lower one, contains four columns of vertical text (the individual letters are upright, but they're arranged vertically). But they're not visible in the uploaded version. Does anyone know why this is, and what can be done about it? A. Parrot (talk) 21:12, 21 May 2023 (UTC)

Having each letter in the vertical text in its own line works. There is also some cleanup that should be made, your original raster file is still in there and there is an path artifact at x150 y540. In Inkscape 1.2 the vertical text also clashes with the casket. Finish it off by selecting everything in Inkscape and doing Edit - resize page to selection. Snævar (talk) 10:32, 22 May 2023 (UTC)
Thank you for your help. Inkscape, or graphics creation in general, obviously isn't my strong suit. A. Parrot (talk) 18:42, 22 May 2023 (UTC)

Tech News: 2023-21

16:52, 22 May 2023 (UTC)

Any way to let certain gadget add edited pages to watchlist with expiry date?

for example, as a filemover, i wanna add both file:oldname.xyz and file:newname.xyz to my watchlist and let them expire after 1 month, so as to monitor them for a short time after my edits. is there a way to make certain gadgets do this? i think i've seen gadgets adding pages to watchlist, but without expiry. RZuo (talk) 11:08, 19 May 2023 (UTC)

The API module has a parameter named watchlistexpiry, so it should be possible. Since watchlist expiry is a relatively new thing, gadgets not updated since then of course don’t support it. —Tacsipacsi (talk) 22:42, 23 May 2023 (UTC)
Yeah, this could be done to MediaWiki:Gadget-AjaxQuickDelete.js. I will add it to my to do list, but don't expect anything soon. —‍Mdaniels5757 (talk • contribs) 22:51, 23 May 2023 (UTC)

No Audio File proficiency for the new babel template?

Hi! I'm trying to add a Babel box for Audio File editing skills on my talk page. The code AF (in uppercase letters) will produce an Audio Editing proficiency box using the old Babel template. But when I use the code AF (either uppercase or lowercase letters) in the new Babel extension, it will say I have proficiency in Afrikaans instead of Audio Files. How can I add the Audio File proficiency box to the new Babel extension? I'm a pretty new editor, so thank you, and sorry in advance if I put this question in the wrong place. Quadruple Tilde (talk) 18:02, 23 May 2023 (UTC)

I did a bit more exploring. The Bitmap code (BG in uppercase) also seems to function only in the old Babel template. The codes for Animation Graphics (uppercase ANI), Vector Graphics (uppercase VG) and Photographer (uppercase PH) all seem to work in both the old and new Babel boxes. Quadruple Tilde (talk) 18:06, 23 May 2023 (UTC)

Removal of ticket permission – false positive

Whenever reverting a vandalism on pages with {{PermissionTicket}} there will be a "Removal of ticket permission" alert, though no one touched the template. The edit will also be unnecessarily tagged; example: Special:Diff/766550973. Ponor (talk) 14:38, 24 May 2023 (UTC)

PDFs for glyph variants

Hi. I've been uploading Unicode characters in SVG format, including character variants available in the font. However, Inkscape can only access the first variant, so for those letters that have additional alt forms, I tried a PDF. An example is file:Gentium alt engma.pdf. However, that's uploaded with very low resolution, first time that's happened. Any idea what I'm doing wrong? Thanks, Kwamikagami (talk) 02:29, 25 May 2023 (UTC)

I don’t know how you configured LibreOffice Writer, but this is the actual size of the PDF. On the other hand, LibreOffice Draw seems to be able to export in SVG – did you try that? —Tacsipacsi (talk) 07:35, 26 May 2023 (UTC)
No, thanks for the tip! Kwamikagami (talk) 08:59, 26 May 2023 (UTC)
Yes! As long as I convert to a curve first, it works. (Evidently can't embed fonts.) That solves that problem! Appreciate it. Kwamikagami (talk) 10:40, 26 May 2023 (UTC)

Upload wizard bug?

If I have uploaded an image and described the file, and I click submit, it says some mistake happens, but then I must just click on and go forward with the process ignoring that there was a mistake, and then it actually works. In the end all images are up. And since I am here, when I upload images first, it usually says I am already uploading a file, but that's normal for my workflow. But the one after the description is new, anyway I am glad for any help, if there is any. Paradise Chronicle (talk) 05:48, 22 May 2023 (UTC)

Somehow the second bug after the description has not appeared the last few times. The first one though still appears at times as regular. Paradise Chronicle (talk) 13:42, 22 May 2023 (UTC)
Sorry I thought that discussion was archived already :)
It is a minor problem, but I have it since months and maybe it would be good I report better. While uploading, I often get the pop up:
'There is an error in your submission'. You are already uploading file ....
Here are a few from some minutes ago.
Here, Here Here here and here.
Anyway, if I ignore it and just click ok, it works. So it doesn't really disturb me, but I don't believe that's the way Upload Wizard should work. Paradise Chronicle (talk) 05:34, 27 May 2023 (UTC)
Here are some more "errors"
Here, here, here, here, here, here and here, all from some minutes ago. Paradise Chronicle (talk) 06:48, 27 May 2023 (UTC)

Best way to handle JP2 for commons?

i'm interested in uploading https://searchworks.stanford.edu/view/2952427 . the "Original source file" is jp2 (79.5 MB). i have really no idea about what to do or where to look for advice on file types.

  1. to which file type is jp2 best converted to? jpg, png, or? in this case, the jp2 is a scan of a map.
  2. what's the best conversion? best as being as lossless as possible? size as small as possible? what in general do libraries/archives consider when they make scans?
  3. is any of these efforts worthwhile? should i simply upload the largest jpg the website provides? is the quality difference (between their jpg and the best conversion according to #1 #2) negligible?

RZuo (talk) 13:18, 27 May 2023 (UTC)

@RZuo i guess you should do #3 right now and put the link to description. you can later upload higher resolution.
and, it is from 1942, so there is no license problem. ----modern_primat ඞඞඞ TALK 13:26, 27 May 2023 (UTC)
The largest JPEG is of the same size of the "Original source file". So just go for JPEG. Yann (talk) 15:37, 28 May 2023 (UTC)
Bida solusyon sa COVID-19.


I uploaded the file "File:Bida solusyon sa COVID-19 logo.svg" from the Filipino government and when I open the file the full SVG seems to load, however I can't seem to get the thumbnail to load. What causes this issue?
Note, the thumbnail to the right (or above for mobile users) appears completely white, but if you actually open the SVG document in full the icon does appear normally. -- — Donald Trung 『徵國單』 (No Fake News 💬) (WikiProject Numismatics 💴) (Articles 📚) 15:27, 28 May 2023 (UTC)

I don’t know why the preview is white, but it doesn’t make sense as an SVG anyway – it’s just a 3000×3000px PNG image stored in an SVG file, without any actual vector graphics. —Tacsipacsi (talk) 22:47, 28 May 2023 (UTC)

Restoring old version of Daniel Vosseler picture

Hello, the file File:Daniel Vosseler en el Circulo Ecuestre.jpg was changed and I cannot restore the old version, which is the one the File:Daniel Vosseler en el Circulo Ecuestre (cropped).jpg originates from. I would like for it to be back as it was, since the current version isn't known to be licensed + didn't have to overwrite the correct previous one. --Brunnaiz (talk) 21:27, 28 May 2023 (UTC)

I was able to restore it, without any errors. —Tacsipacsi (talk) 22:28, 28 May 2023 (UTC)

Tech News: 2023-22

MediaWiki message delivery 21:58, 29 May 2023 (UTC)

The new Vector 2022 seems to be quite broken

Hello. I like the new Vector 2022. I use it on Czech and other Wikipedias, I use it on Incubator, I use it pretty much everywhere. But on the Czech Wikipedia, if the page is scrolled down, there is a fixed part above the page, with search bar, and buttons for user actions, where I can access the watchlist for example. That fixed part is missing here on Commons. There is a top part with search bar, and the user actions buttons, but when I scroll down, it disappears, because it scrolls out of the viewport. On Czech Wikipedia, it stays on, just rearranges slightly, but it is equally usable. Here? Nope, I have to scroll all the way up to access watch list. Could it be unified? Polda18 D C 16:17, 27 May 2023 (UTC)

@Polda18 Probably not broken but configured differently. Wikivoyage behaves the same as Commons, en.Wikipedia behaves the same as Czech Wikipedia. I'd love to have that floating header bar thing here on Commons as well, but I have no idea who/where to ask about that. El Grafo (talk) 10:31, 1 June 2023 (UTC)
Fair enough. Polda18 D C 07:39, 3 June 2023 (UTC)

Non-manual way to upload these photos?

Hello, I am trying to upload some photos from a National Park Service account on Flickr. I love the flickr URL uploader, but can't seem to use it for these photos. It auto-tags them as ineligible due to Flickr's autolicensing every image as "all rights reserved". Despite this, the images by the Federal Government are in the public domain, and are definitely PD as stated extremely clearly in the Flickr account's "About" page. Is there a way for me or a user with more power to upload them without having to download each one and slowly reupload and relabel? ɱ (talk) 03:09, 30 May 2023 (UTC)

You can take the initiative to contact the owner of the Flickr account and ask him to change the authorization information of the account copyright. First of all, the copyright of Flickr registered users defaults to "All Rights Reserved". In addition, it is not ruled out that some Flickr users pretend to be the accounts of employees of the US federal government. Fumikas Sagisavas (talk) 08:02, 8 June 2023 (UTC)

Increasing number of my deleted edits

Hi

Within the last 12 months, I had less than 100 manually reverted or reverted edits and less than 5 deleted images. By 6 December 2022 I had 385 total deleted edits and today I have 814 deleted edits!!! 450 deleted edits in almost 6 months!!! I also have nominated less than 30 images for deletion during this time period.

If you check all may edits so far, the total number of my deleted or reverted edits are less than 300.

Why it is happening?

Why number of deleted edits is increasing dramatically with the limited number of deletion or reverting or any notifications during this short time period?

Cheers Shkuru Afshar (talk) 12:08, 25 May 2023 (UTC)

Reverted edits don’t count as deleted. However, all edits you made to pages that were subsequently deleted count as deleted edits, not only edits in which you nominated pages for deletion. You don’t get automatic notifications about deletion of pages you’ve ever edited unless the pages are on your watchlist – maybe this explains the growing number of deleted edits? —Tacsipacsi (talk) 08:41, 26 May 2023 (UTC)
How come I have edited 450 pages in 6 months that have been subsequently deleted? I mean what could be wrong about all those pages?
In any circumstances, over 450 pages that I edited can't be deleted. It is a very high number within 6 months. Shkuru Afshar (talk) 03:07, 27 May 2023 (UTC)
It’s 450 edits made to pages that have been deleted in the last six months. It’s not necessarily 450 different pages, and not necessarily edits you made in the last six months – some of them may be edits you made to pages in 2014, provided that the pages were deleted in the last six months. (However, all of these are speculations and assumptions, as only admins can see your deleted edits to see what actually happened.) —Tacsipacsi (talk) 10:09, 27 May 2023 (UTC)
@Hanooz: Hi. Could you please show me a list of my deleted edits? I don't mean giving me access. Even a copy and pasted or a simple coutinues list can help.
Thank you Shkuru Afshar (talk) 21:45, 30 May 2023 (UTC)
I can't. I'm not an admin since 2022. Hanooz 12:37, 31 May 2023 (UTC)
OK. Then I will ask from an admin.
Thank you though Shkuru Afshar (talk) 10:45, 4 June 2023 (UTC)


Can one of admins give me a list of my deleted edits please? Shkuru Afshar (talk) 07:12, 10 June 2023 (UTC)

GeographBot images seemingly not uploading/cropping correctly

Hi, strange issue here that has happened a few times now - after using the CropTool File:Gas bus in Wolverhampton bus station - geograph.org.uk - 4828426.jpg that was uploaded by User:GeographBot, File:Gas bus in Wolverhampton bus station - geograph.org.uk - 4828426 (cropped).jpg seemingly has uploaded with no summary and no complete indication of it's copyright status. The link to the Geograph page the uncropped image was uploaded from is also broken.

Again, this has happened a few times now, sometimes even on new uploads by GeographBot that I haven't edited. Is there something I've done wrong during the cropping process, or is this an issue with bot uploads? And either case, how can this be quickly rectified without manually having to copy over the information? Hullian111 (talk) 14:38, 26 May 2023 (UTC)

@Hullian111: The problem is that GeographBot puts all the information about the image in structured data, but CropTool doesn't copy structured data from the source image to the destination. This results in a file whose wikitext just contains a template invoking the structured data, but whose structured data is empty. I don't know of a good solution to this, which is why Category:Images from Geograph Britain and Ireland with broken templates is accumulating cropped images. Pinging Multichill and Danmichaelo who I think are responsible for the two components in question. --bjh21 (talk) 14:47, 25 June 2023 (UTC)
The solution is to update the croptool. Structured data has been around for about 5 years no, so it's about time that should happen. Multichill (talk) 20:45, 25 June 2023 (UTC)