Images saved as HDF5 arent colored
问题 Im currently working on a program that converts text files and jpg-images into the HDF5-Format. Opened with the HDFView 3.0, it seems that the Images are only saved in greyscales. hdf = h5py.File("Sample.h5") img = Image.open("Image.jpg") data = np.asarray((img), dtype="uint8") hdf.create_dataset("Photos/Image 1", data=data, dtype='uint8') dset = hdf.get("Photos/Image 1") dset.attrs['CLASS'] = 'IMAGE' dset.attrs['IMAGE_VERSION'] = '1.2' arr = np.asarray([0, 255], dtype=np.uint8) dset.attrs[