I have the below code and i get this error:
File “C:UsersomarAppDataLocalProgramsPythonPython312Libsite-packagesjpeglibfunctional.py”, line 71, in read_dct
return DCTJPEG(
^^^^^^^^
TypeError: DCTJPEG.init() got an unexpected keyword argument ‘path’
mport jpeglib
im = jpeglib.read_dct("tree.jpg")
Luminance = im.Y
Chr = im.Cr
Chb = im.Cb
Quan = im.qt
print(Quan)
I need to get metadata of jpeg image by jpeglib library in python
New contributor
arshub is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.