matej_suchanek closed this task as "Invalid".
matej_suchanek added a comment.


  SDC does not seem to provide this information. It's accessible for files on 
all wikis using:
  
    >>> import pywikibot
    >>> commons = pywikibot.Site('commons:commons')
    >>> file = pywikibot.FilePage(commons, 'Würfelzucker -- 2018 -- 3564.jpg')
    >>> info = file.latest_file_info
    >>> info.__dict__.keys()
    dict_keys(['timestamp', 'user', 'size', 'width', 'height', 'comment', 
'url', 'descriptionurl', 'descriptionshorturl', 'sha1', 'metadata', 'mime'])
    >>> info['width'], info['height']
    (5349, 3343)
  
  Closing as invalid as this is not a bug report nor a feature request.

TASK DETAIL
  https://phabricator.wikimedia.org/T326510

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: matej_suchanek
Cc: matej_suchanek, Mpaa, Aklapper, Ainali, Geertivp, pywikibot-bugs-list, 
mrephabricator, toberto, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, 
CBogen, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Framawiki, Mdupont, 
JJMC89, Dvorapa, Altostratus, Avicennasis, Abit, mys_721tx, Xqt, jayvdb, Masti, 
Alchimista
_______________________________________________
pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org
To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org

Reply via email to