TypeError: convertDocument() takes 1 positional argument but 2 were given : <p>I'm try to use Converter class to convert my image file but when I'm use it in OOP it's give me </p>

<p><strong>TypeError:</strong> convertDocument() takes 1 positional argument but 2 were given</p>

<pre><code>class Converter:
    def convIMG2JPG(self):

        os.mkdir(inputfile+"\\"+Path(inputfile).stem)

        im = Image.open(inputfile)
        rgb_im = im.convert('RGB')
        rgb_im.save(outputdir+"\\"+ Path(inputfile).stem+"\\"+ Path(inputfile).stem + ".jpg")

    def convertDocument(inputfile):
        if(file_extension == ".gif" or file_extension == ".jfif" or file_extension == ".jpeg" or file_extension == ".jpg"
            or file_extension == ".BMP" or file_extension == ".png"):

            convIMG2JPG(inputfile)


</code></pre>

<pre><code>convert = Converter()
input = "/10791227_7168491604.jpg"
convert.convertDocument(input)
</code></pre>
