Commons:Village pump/Technical

Latest comment: 2 days ago by Sreejithk2000 in topic Api that returns the file ids

Shortcuts: COM:VP/T • COM:VPT

Welcome to the Village pump technical section
Technical discussion
Village pump/Technical
 Bug reports
 Code review
Tools
 Tools/Directory
 Idea Lab



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; recent archives: /Archive/2024/01 /Archive/2024/02.

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.

Template:Userpage formatting edit

I'm trying to add formatting parameters to Template:Userpage (e.g. for changing the background color), but having some issues. I introduced them to Template:Userpage/layout, but I gather that I need to pass them through language variants like Template:Userpage/en to get them to be usable. But when I try to add something like

|border={{{border|}}}
|background={{{background|}}}
|extra-style={{{extra-style|}}}
|file={{{file|}}}

to the English translation, it shows in previews that undefined values are interpreted as blanks rather than just ignored. How do I get around this? Best, {{u|Sdkb}}talk 19:48, 5 December 2023 (UTC)Reply[reply]

{{subst:bump}} {{u|Sdkb}}talk 07:27, 3 February 2024 (UTC)Reply[reply]

Upload wizard change edit

The upload wizard design seems to have been changed in the last day or two. Is there any possibility that whoever changed it could provide more space for answers to 2. Where did you find this work? Enter the website, the book, or another source. and 3. Enter the name of the original author of this work., both of which questions often require more than a single short sentence. By way of example, for an image I've just uploaded I'd like to give the following information for q.2 - which used to fit in the edit box before this change; now there's a single line edit box which requires both horizontal and vertical scrolling to try to make any sense of the input text:

Upper Wharfedale : being a complete account of the history, antiquities and scenery of the picturesque valley of the Wharfe, from Otley to Langstrothdale via Internet Archive - https://archive.org/details/upperwharfedaleb00speiuoft/page/n177/mode/2up

Image cropped from https://ia800905.us.archive.org/view_archive.php?archive=/9/items/upperwharfedaleb00speiuoft/upperwharfedaleb00speiuoft_jp2.zip&file=upperwharfedaleb00speiuoft_jp2%2Fupperwharfedaleb00speiuoft_0195.jp2&ext=jpg

--Tagishsimon (talk) 05:46, 14 December 2023 (UTC)Reply[reply]

@Tagishsimon: You may wish to ask this at (or see) Commons talk:WMF support for Commons/Upload Wizard Improvements. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 15:22, 14 December 2023 (UTC)Reply[reply]
@Udehb-WMF. RZuo (talk) 15:32, 15 December 2023 (UTC)Reply[reply]
@Tagishsimon Do you mind translating your request into a Phabricator ticket? I'll raise the problem at the next round of talks with the designer when they get back from the holidays. Sannita (WMF) (talk) 17:23, 19 December 2023 (UTC)Reply[reply]
  • Just chiming in to add my voice that the new Upload Wizard really sucks. Too many buttons to click, too little space to put nicely formatted source info, and an apparent obsession with AI (is AI really such an issue that it needs explicit noting several times in the upload process?) --Animalparty (talk) 17:13, 14 January 2024 (UTC)Reply[reply]

Improving MP4 error message edit

Related to Commons:Requests_for_comment/Technical_needs_survey#Video_conversion_support, can we at least make the error message when someone tries to upload an MP4 file point to Help:Converting video? I believe the message is hosted at MediaWiki:Mwe-upwiz-upload-error-bad-filename-extension, but not sure whether it can accept links or not. {{u|Sdkb}}talk 08:12, 19 December 2023 (UTC)Reply[reply]

Does anyone familiar with the interface area know this? {{u|Sdkb}}talk 07:00, 13 January 2024 (UTC)Reply[reply]
As far as I see, it uses mw.jqueryMsg, so it can use wikitext to the extent documented at mw:Manual:Messages API#Feature support in JavaScript – a simple internal or external link should work. (However, be aware that overriding the message here on Commons has i18n implications, so maybe you should convince developers to make the change in the code / on Translatewiki.) —Tacsipacsi (talk) 10:13, 13 January 2024 (UTC)Reply[reply]
Thanks, @Tacsipacsi! Given that Help:Converting video is a local page and other wikis might decide to accept MP4s, a local message seems necessary.
The next challenge is that I'm noticing that the error message comes up for all non-accepted filenames, not just MP4s. I imagine that most users encountering the message will be trying to upload MP4s (the WMF could maybe provide data on that), but still, this makes it impossible to provide help tailored to the specific unallowed file type a user is trying to upload. And it seems there's no way to resolve that, since we can't use parser functions to check the variable? I'll make an edit request to link to both Help:Converting video and Commons:File types, but ideally the tool will be smarter in the future. {{u|Sdkb}}talk 16:05, 13 January 2024 (UTC)Reply[reply]
Edit request made here. Cheers, {{u|Sdkb}}talk 16:17, 13 January 2024 (UTC)Reply[reply]

video2commons cannot be accessed normally edit

This is an auxiliary tool that can parse videos. Recently, it was found that it could not be opened normally, and it was suspected that the website was out of service. Fumikas Sagisavas (talk) 08:36, 11 January 2024 (UTC)Reply[reply]

@Fumikas Sagisavas i just used it to upload a vimeo video.
but if you're uploading youtube, then it doesnt work at the moment. other than that it should be working. RZuo (talk) 09:14, 11 January 2024 (UTC)Reply[reply]

rename without redirect edit

Template:Rename does not say how this is done (from a script).

I have a few thousand files to rename, recently uploaded, with an errorneous filename.

Thx Nowakki (talk) 15:37, 12 January 2024 (UTC)Reply[reply]

@Nowakki: Hi. There is no special parameter in the template to specify such requests, you can ask for it in the request reason (|reason=), the filemover won't refuse if the uploads are recent and unused. Thanks! -- CptViraj (talk) 18:15, 12 January 2024 (UTC)Reply[reply]
50,000+ files. At some point the approval will become an automatic operation. I just leave it to them to auto-approve with no redirect? Nowakki (talk) 18:26, 12 January 2024 (UTC)Reply[reply]
If you want to have 50,000+ files renamed, you should probably write at Commons:Bots/Work requests instead of flooding the backlog category. There you can explain what exactly you want, including that you don’t want redirects. —Tacsipacsi (talk) 09:25, 13 January 2024 (UTC)Reply[reply]
I already have the bot. Nowakki (talk) 10:23, 13 January 2024 (UTC)Reply[reply]

Image preview is not displayed edit

I have observed repeatedly that no preview image of an SVG file is shown although the SVG file seems to be valid. What is the reason for this? Some examples: File:Asiatischer Monat 2023 Goldmedaille.svg, File:Asiatischer Monat 2023 Silbermedaille.svg, File:Asiatischer Monat 2023 Bronzemedaille.svg.

Thanks for any suggestions. --Furfur Diskussion 18:01, 12 January 2024 (UTC)Reply[reply]

tiff files wasting space edit

There are 98,000 tiff files of Sanborn Fire Insurance Maps on commons, each 140-150MB in size.

With LZW compression such a file typically shrinks by 100MB with a runtime of the tiffcp command on a 3.5ghz cpu at 2 seconds.

in total 10TB of wasted space. Nowakki (talk) 15:34, 13 January 2024 (UTC)Reply[reply]

The files could be renewed with compressed file versions, but I do not know how the uncompressed files could be deleted to make the disk space free --PantheraLeo1359531 😺 (talk) 12:28, 15 January 2024 (UTC)Reply[reply]
The files can be compressed on the server. No need to upload them again. That would be stupid. Nowakki (talk) 12:48, 15 January 2024 (UTC)Reply[reply]
That can only be done by system administrators, so the right place to discuss this is https://phabricator.wikimedia.org/. Yann (talk) 13:01, 15 January 2024 (UTC)Reply[reply]
Actually I think system administrators read the technical forum. Or they have lieutenants who do.
In a properly run organization this would be a minor problem and would have been solved years ago. It is my current understanding that commons celebrates a kind of post office mediocrity. Nobody volunteers to be staff. They volunteer to be volunteers. Nowakki (talk) 13:07, 15 January 2024 (UTC)Reply[reply]
Anyway, this isn't even the worst. I have been here for 2 weeks or so and already had the pleasure of going against a crust of bureaucracy on a proposal to rename Sanborn map files.
I have learned that it is policy to enshrine whatever bad name choice was made by the original uploader. Although, given that names of mass uploads do not have to be approved, i am fairly sure that there also exists a policy that bad names can always be changed at a later time.
Spent 1.5 weeks building an sqlite database and a bunch of scripts to try and rectify the mess. Spent another week trying to convince what are probably mid level staffers of the benefits. I did everything right, what i got was negative help. The whole thing could have been over with last week. Now it will probably be done a few years down the road. Nowakki (talk) 14:14, 15 January 2024 (UTC)Reply[reply]
  • 10TB of 'wasted space' is just how much, in terms of the project's resources? Andy Dingley (talk) 14:54, 15 January 2024 (UTC)Reply[reply]
    Don't know. Probably more than 1%, less than 3%. Depends on a lot of factors in the end. Commons doesn't rent Icelandic deep cave long term storage for premium dollar amounts? This is only files from one uploader, not all tiffs on the server. Waste in one place encourages waste in other places, if 10TB is not much then 50TB would only be a small problem. How often is the data replicated and backed up. And so on...
    Seems like an interesting article could be written on the subject. I would read. Nowakki (talk) 15:14, 15 January 2024 (UTC)Reply[reply]
    @Andy Dingley I did some math.
    Assume 20 Watt to run 1 CPU core and the hard disk on the conversion job. The process generates 50MB of free space per second.
    That is 1TB in 20,000 seconds at 400 kilowattseconds. Assuming 10 cents per kilowatthour that would mean a 1TB hard disk can be generated effortlessly out of thin air for the price of 1.1 cents. Nowakki (talk) 17:44, 15 January 2024 (UTC)Reply[reply]

Tech News: 2024-03 edit

MediaWiki message delivery 00:10, 16 January 2024 (UTC)Reply[reply]

Total Daily Image Views edit

Do we have a tool that will show the totals for image views similar to the old d.o.s. syntax "*common_image_title.jpg" that poll from the viewer logs? The site wmcloud.org does not allow wildcards * in the lookup and seems to only be able to handle one request at a time. [GLAMorous] on toolforge might be configurable to do it, anyone have any suggestions or experience here? --Don (talk) 21:07, 17 January 2024 (UTC)Reply[reply]

do you mean something like https://glamtools.toolforge.org/glamorgan.html ? RZuo (talk) 13:53, 18 January 2024 (UTC)Reply[reply]
Hi thank you for the reply, I am familiar with Glam and it does not seem to be configurable to use a wild card * in the search and limits the scope of the search to category by image. What I am looking for is total number of views of ALL images in a category. --Don (talk) 22:25, 18 January 2024 (UTC)Reply[reply]
i dont get how this tool doesnt fulfil your wish. if you try the demo, it gives
76 files in category tree.
37 files were viewed, out of 44 used.
235 pages on 66 wikis use those files.
243,106 file views in 2016-01. (= total number of views of ALL images in a category? albeit limited to only a given month.)
Data for 80 pages could not be loaded from the WMF pageview API (404 error). RZuo (talk) 23:00, 18 January 2024 (UTC)Reply[reply]
This works thank you. Don (talk) 19:35, 24 January 2024 (UTC)Reply[reply]

MoreMenu edit

I keep on seeing this weird error on the right top of my system: "Uncaught Error: module already implemented: ext.gadget.MoreMenu". Is this only me? ─ The Aafī (talk) 11:03, 18 January 2024 (UTC)Reply[reply]

Upload Wizard issue with file extensions edit

The Upload Wizard is giving uploaders misleading information about why a given image title cannot be accepted. If you try to upload a file with the image extension included by mistake, the Wizard will warn you to Please choose a different, descriptive title (more info).

Clicking "more info" brings up a box that says this:

There was an error in your submission. The file name you were trying to upload has been blacklisted because it is very common, uninformative, or spelled in ALLCAPS. Please go back and choose a better file name.  When uploading files to Wikimedia Commons, please use a file name that describes the content of the image or media file you're uploading and is sufficiently distinctive that no-one else is likely to pick the same name by accident.
Examples of good file names:
Nodnol skyline from Nodnol City Hall - Aug 2022.jpg
1875 Meeting of Settlers at Falconer Bay, New Nodland.jpg
Pseudohedron with no vertex visible from center.png
Examples of bad file names:
Image01.png
Joe.jpg
DSC00001.JPG
Foo.svg.png
30996951316264l.jpg
PSEUDOHEDRON WITH NO VERTEX VISIBLE FROM CENTER.png
For more information, please see Commons:First steps/Upload form. If you have a good reason for uploading a file with this name, or if you receive this message when attempting to upload a new version of an existing file, please let us know at Commons:Administrators' noticeboard or directly at MediaWiki talk:Titleblacklist.  Be sure to specify the exact name of the file you are trying to upload. Thank you.}}

This information is unhelpful. The problem with the image is that it includes an image description, not that it isn't descriptive enough. Schierbecker (talk) 00:38, 19 January 2024 (UTC)Reply[reply]

Request feedback edit

Hello, I look forward to seeking your feedback on this script, which easily helps copy decoded links of pages/files in one click. It does not, however, currently work on revisions/pages that come through Special:MobileDiff but it perfectly works elsewhere. ─ The Aafī (talk) 07:59, 19 January 2024 (UTC)Reply[reply]

great script. exactly the same as what i also wished for https://commons.wikimedia.org/w/index.php?title=Commons:Idea_Lab&oldid=836459487#Big_button_/_keyboard_shortcut_to_copy_pagename_to_clipboard_(add_links) .
i already forked 1 for myself User:RZuo/PagenameCopier.js. for me i dont care about aesthetics so much. i just need the button to be big, really BIG. it'd be even better if there's a keyboard shortcut. :D
i'd also replace the svg with 1 hosted on commons. i found and used File:Copy-outlined-circular-button.svg because it looks unique and stands out from everything else. RZuo (talk) 09:17, 19 January 2024 (UTC)Reply[reply]
Thanks for the compliment @RZuo. I'd change the image and also see if I can fit in what you have been looking for. ─ The Aafī on Mobile (talk) 11:20, 19 January 2024 (UTC)Reply[reply]
If you want to copy just the wiki links (for interwiki linking purposes), I've a solution for that. I'll do some tweaks later in the day. ─ The Aafī on Mobile (talk) 11:31, 19 January 2024 (UTC)Reply[reply]
I did some tweaks and changed the icon with this one from Commons. ─ The Aafī (talk) 18:57, 19 January 2024 (UTC)Reply[reply]

Vertical titles on mobile edit

 
The titles of sections appear vertical on mobile devices.

Since December 2023 I've been experiencing the titles of sections in mobile to be vertical. I am also experiencing this on Wikipedia and other Wikimedia websites. Does anyone else experience this while using a mobile device? I notice that it is very screen size sensitive, on smaller devices I see this, but on tablet computers and laptops the titles appear different. --Donald Trung 『徵國單』 (No Fake News 💬) (WikiProject Numismatics 💴) (Articles 📚) 23:44, 19 January 2024 (UTC)Reply[reply]

Is CropTool Working? edit

I have tried starting CropTool to modify images. It stopped working about 2024-01-19. I use it frequently and have tried to start it with several different images.

I just tried it again and got the following message:

Wikimedia Toolforge Error

This Grid Engine web service cannot be reached. Please contact a maintainer of this tool.

Tool maintainers can find more details from the documentation on Wikitech.

I have spent over an hour trying to figure out where to post my problem. This was my best guess. I am too old to figure out who the maintainer is. I do not have a talk page on Wikimedia. User-duck (talk) 01:09, 22 January 2024 (UTC)Reply[reply]

I reformatted the above message to fix heading levels. –IagoQnsi (talk) 03:01, 23 January 2024 (UTC)Reply[reply]
Having the same issue – seems to be completely down. Looks like a GitHub issue was opened yesterday. –IagoQnsi (talk) 03:01, 23 January 2024 (UTC)Reply[reply]
I opened a Phabricator ticket: phabricator:T355633. –IagoQnsi (talk) 03:15, 23 January 2024 (UTC)Reply[reply]
Thank you. User-duck (talk) 18:44, 23 January 2024 (UTC)Reply[reply]
@User-duck@IagoQnsi it's working for now. use it before it disappears again on 14 feb. RZuo (talk) 18:55, 23 January 2024 (UTC)Reply[reply]
@IagoQnsi: Why is CropTool going to disappear? I know this is Wikipedia/Wikimedia and mysterious things happen. User-duck (talk) 13:05, 24 January 2024 (UTC)Reply[reply]

Tech News: 2024-04 edit

MediaWiki message delivery 01:01, 23 January 2024 (UTC)Reply[reply]

How to remove unnecessary audio from video edit

The video file File:Arc melted rhenium block.webm comes from Flickr. When I shot the video, I accidentally recorded music that may be copyrighted. Can you please remove the audio part of this video? Thank you! Fumikas Sagisavas (talk) 07:32, 23 January 2024 (UTC)Reply[reply]

you can try com:videocuttool, or ask a sysop to import it again without the audio for you.
next time when you use v2c, make sure unselect "audio" if you dont want it. RZuo (talk) 08:27, 23 January 2024 (UTC)Reply[reply]
MKVToolNixGUI also allows the removal of audio stripes --PantheraLeo1359531 😺 (talk) 19:15, 29 January 2024 (UTC)Reply[reply]

SVG map not rendering correctly edit

I've uploaded this file, and I don't know why, but it doesn't render the texts properly, unless you open it directly, or outside wikimedia.

 
Map of the Nort-eastern Asian Languages in danger

Ewithu (talk) 13:54, 24 January 2024 (UTC)Reply[reply]

I'm afraid I'm not sure, but I did discover that the file has 295 embedded PNGs, which mostly seem to be things like borders for the legend at the top and text fragments like "Nor". —CalendulaAsteraceae (talkcontribs) 04:50, 25 January 2024 (UTC)Reply[reply]
@Ewithu: The primary issue is the file does character placements, something that librsvg (the wiki SVG to PNG rasterizer) does not support. You will get many such warnings at Commons:Commons SVG Checker. It looks like that error causes the tspan elements to just add to the last string rather than move to the expected location. The file is also poorly organized with labels placed in tspan subelements rather than their own text elements. Glrx (talk) 05:24, 25 January 2024 (UTC)Reply[reply]
Thank you very much @Glrx!
I tried fixing it, it looked like I managed, but when I uploaded as a new version, somehow it's still messed up :/
I'm not too skilled with svg programing so I cannot manually fix what's broken. Should I upload it as a large png image instead? Ewithu (talk) 17:38, 25 January 2024 (UTC)Reply[reply]
If you have another device, try viewing the image on that. You might be looking at an old cached version of the image. It looks good to me now. Soap (talk) 18:20, 25 January 2024 (UTC)Reply[reply]
Ah, you are right. Thanks! Ewithu (talk) 20:16, 25 January 2024 (UTC)Reply[reply]

Toggle the proceed button on/off for filemovers edit

what is responsible for the popup for filemovers to move files? a gadget?

i have a suggestion for it. it'd be good if the proceed button, or "hitting the enter key to proceed", can be toggled on/off temporarily.

it has happened occasionally that while you are editing the intended filename you accidentally hit enter, then the file gets moved to a wrong name. this is especially a trouble for me as i use input methods for cjk chars, which often involve hitting the enter key.

notice how the proceed button greys out if the filename field is less than 8 chars. a button to toggle the proceed button off like that would be good.

or even better, as long as cursor is active in the filename field it should grey out the proceed button. RZuo (talk) 07:06, 27 January 2024 (UTC)Reply[reply]

Template protection banners inconsistency edit

File:Nominate for deletion sidebar.png (which is used at Commons:Deletion requests as example) is template protected. This is mentioned in the edit notice of the page:

This page is currently protected, and can be edited only by template editors and administrators.

However, when viewing the file File:Nominate for deletion sidebar.png, the banner says:

This page is currently protected, and can be edited only by administrators.

which is misleading. —⁠andrybak (talk) 21:02, 27 January 2024 (UTC)Reply[reply]

UploadStash documentation edit

it'd be great if someone can write something at Commons:UploadStash about Special:UploadStash, like how long the temporary files are stored in the stash.

or maybe you can point to where the actual documentation about this is. i made it a soft redirect to where the doc is supposed to be but the target page is certainly abandoned and outdated. RZuo (talk) 10:49, 29 January 2024 (UTC)Reply[reply]

Tech News: 2024-05 edit

MediaWiki message delivery 19:28, 29 January 2024 (UTC)Reply[reply]

How can I revert my edit edit

I was updating a .pdf of a book with page problems that I had uploaded in the past. However, in the process, I didn't read the message advising not to upload a .pdf when updating a file. As a result, my file is now broken. Is there a way to revert my edit? Here is the file: File:A Bruxa de Monte-Cordova (1904).pdf Junglk (talk) 01:42, 1 February 2024 (UTC)Reply[reply]

@Junglk: Scroll down to the file history and click the link that says "revert" next to the previous version of the file. I've gone ahead and done that here. —CalendulaAsteraceae (talkcontribs) 05:30, 1 February 2024 (UTC)Reply[reply]

Odd template behaviour at Creator:Rabindranath Tagore edit

Hello, in the description field of this creator tag there is a preceding hyphen, and the word "Bengali" is wikilinked but I can't find this anywhere in the Wikidata description. Please also see Creator talk:Rabindranath Tagore. pinging previously involved editors: @Jeff G. and Pacha Tchernof: Matrix(!) {user - talk? - useless contributions} 17:43, 2 February 2024 (UTC)Reply[reply]

@Matrix: I think I've worked out some of what's going on. The description is constructed by Module:NationAndOccupation, and it inserts a hyphen in the "nationality" part of the description where there are two nationalities. In the case of Rabindranath Tagore (Q7241) there are two values for ethnic group (P172), Bengali (Q402913) and Brahmin caste (Q47140). I reckon the empty string before the hyphen is a failed attempt at rendering Brahmin caste (Q47140). I haven't worked out why that's failing though. --bjh21 (talk) 18:06, 2 February 2024 (UTC)Reply[reply]
I think it may just boil down to Brahmin caste (Q47140) not being in Module:NationAndOccupation/nationalityLUT, but I'm not sure. --bjh21 (talk) 18:12, 2 February 2024 (UTC)Reply[reply]
@Bjh21: I've just specified the nationality manually at Creator:Rabindranath Tagore, so it should be good now. —Matrix(!) {user - talk? - useless contributions} 14:04, 3 February 2024 (UTC)Reply[reply]

Deleted file disappeared edit

Hi, FYI I filled up a bug report for File:Derain_CharingCrossBridge.png which was deleted in 2006, and can't be restored. The file description is available, but the file itself disappeared. See phab:T356535. Yann (talk) 19:48, 2 February 2024 (UTC)Reply[reply]

@Yann: Is this it: en:File:Derain CharingCrossBridge.png? Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 21:19, 4 February 2024 (UTC)Reply[reply]

GlobalUsageCount down edit

toolforge:globalusagecount has been down for weeks (it was reported here), and the maintainer Steinsplitter has not been active globally since December. I submitted an edit request at MediaWiki talk:Globalusage-header-image to use a mirror instead, but looking through Category:Commons protected edit requests for interface administrators it seems like there are intadmin edit requests that have been languishing for months without response, so I am reposting it here for visibility. Ahecht (TALK
PAGE
) 18:35, 4 February 2024 (UTC)Reply[reply]

  Done by Lucas Werkmeister. --Ahecht (TALK
PAGE
) 23:43, 4 February 2024 (UTC)Reply[reply]

Translingual tag edit

It would be useful to have a translingual tag for New Latin name of species, similar to {{En}} or {{Fr}}, in {{Information}}. An example here.-- Carnby (talk) 07:31, 5 February 2024 (UTC)Reply[reply]

Tech News: 2024-06 edit

MediaWiki message delivery 19:20, 5 February 2024 (UTC)Reply[reply]

Api that returns the file ids edit

I am looking for an api that can give ids of all the file revisions of a page. If the file page has multiple file uploads, I would like to get ids of all. So far I could only find API:Filearchive api that can return ids of all deleted pages but I am looking for a similar api that can return files that are not deleted. Sreejith K (talk) 21:56, 6 February 2024 (UTC)Reply[reply]

@Sreejithk2000: mw:API:Imageinfo will return all versions of a file. I don't think each version has an ID though. In the database, the filearchive table has an ID column, but the oldimage table doesn't. --bjh21 (talk) 00:04, 7 February 2024 (UTC)Reply[reply]
Thank you @Bjh21 -- Sreejith K (talk) 04:56, 8 February 2024 (UTC)Reply[reply]