This commit is contained in:
torzdf 2021-02-15 12:46:42 +00:00
parent 407b71377f
commit 14564bbc85

View File

@ -373,7 +373,7 @@ def read_image_meta(filename):
if os.path.splitext(filename)[-1] != ".png":
# Get the dimensions directly from the image for non-pngs
logger.trace("Non png found. Loading file for dimensions: '%s'", filename)
img = cv2.imread("filename")
img = cv2.imread(filename)
retval["height"], retval["width"] = img.shape[:2]
return retval
with open(filename, "rb") as infile: