this file has 4 similar file history revisions on one edit it is happend based on en.wiki's file
Please add an option to imagetransfer.py to force it uploading the last revision not all of the file history revisions.
I run this code
import imagetransfer import pywikibot faSite=pywikibot.Site('fa',fam='wikipedia') enSite=pywikibot.Site('en',fam='wikipedia') imagepage = pywikibot.Page(enSite, u'File:'+imagename) imagepage = iter([imagepage]) bot=imagetransfer.ImageTransferBot(imagepage, interwiki=False, targetSite=faSite,keep_name=True,ignore_warning=True) bot.run()