from PIL import Image
for i in range(1,483):
    path_o = r"/media/yons/DATA/data/VOCtrain/VOC2007/JPEGImage/image-%03d.jpeg" % i
    path_s = r"/media/yons/DATA/data/VOCtrain/VOC2007/JPEGImages/image-%03d.jpg" % i
    img = Image.open(path_o)
    img.save(path_s)

39a4ea93e5a5f65c8d96907e5aae9a83555a1d67
<mask token>

<mask token>
for i in range(1, 483):
    path_o = (
        '/media/yons/DATA/data/VOCtrain/VOC2007/JPEGImage/image-%03d.jpeg' % i)
    path_s = (
        '/media/yons/DATA/data/VOCtrain/VOC2007/JPEGImages/image-%03d.jpg' % i)
    img = Image.open(path_o)
    img.save(path_s)

from PIL import Image
for i in range(1, 483):
    path_o = (
        '/media/yons/DATA/data/VOCtrain/VOC2007/JPEGImage/image-%03d.jpeg' % i)
    path_s = (
        '/media/yons/DATA/data/VOCtrain/VOC2007/JPEGImages/image-%03d.jpg' % i)
    img = Image.open(path_o)
    img.save(path_s)

from PIL import Image
for i in range(1,483):
    path_o = r"/media/yons/DATA/data/VOCtrain/VOC2007/JPEGImage/image-%03d.jpeg" % i
    path_s = r"/media/yons/DATA/data/VOCtrain/VOC2007/JPEGImages/image-%03d.jpg" % i
    img = Image.open(path_o)
    img.save(path_s)
