I have the following issues when I try to run: the input would be something like file=/Downloads/canon_eos_70d_20.CR2
with Raw(file) as raw_image:
buffered_image = np.array(raw_image.to_buffer())
im = Image.frombuffer('RGB', (raw_image.metadata.width, raw_image.metadata.height), buffered_image, 'raw',
'RGB', 0, 1)
im.save(os.path.split(file)[1] + '.jpg')
print('Successfully saved file as JPG.')
'Unsupported Libraw version: %s.%s.%s.' % self.version_number
ImportError: Unsupported Libraw version: 0.19.2.
Any ideas? if not did anyone tried any other way to convert RAW images to jpg?