I saved using opencv and opened with
for F in os.listdir(directory):
        img=cv2.imread(directory+'/'+ F)
        img=cv2.cvtColor(img,cv2.COLOR_BGR2GRAY)

        cv2.imwrite(f"dogs/{i}.jpg",img)