Error Opening PGM file with PIL and SKIMAGE
问题 I have following Image file: Image I used PIL and Skimage to open it but I get following errors First with PIL (tried with and without trucate option): Code: from PIL import Image, ImageFile ImageFile.LOAD_TRUNCATED_IMAGES = True img = Image.open("image_output.pgm") Erorr: OSError: cannot identify image file 'image_output.pgm' And with Skimage: Code: from skimage import io img = io.imread("image_output.pgm") Error: OSError: cannot identify image file <_io.BufferedReader name='image_output.pgm