diff --git a/core/tasks.py b/core/tasks.py index 76a361a5..7a9e2382 100644 --- a/core/tasks.py +++ b/core/tasks.py @@ -314,6 +314,6 @@ def device_photo_thumbhash_generate(): for device in target_devices: # Open image for reading - with device.photo.open("r") as photo: + with device.photo.open("rb") as photo: device.photo_thumbhash = image_to_thumbhash(photo) device.save()