facealign icon indicating copy to clipboard operation
facealign copied to clipboard

No jpg files found?

Open MeredithD opened this issue 9 years ago • 6 comments

Hey there this is Derrick and I have a problem regarding the import of images. Apparently I have installed all necessary packages and when I tried to run sizeToFace it prompts a error saying "no jpg files found" (as the image shown below). Please help. Thank you very much! Derrick

I tried 2 different ways to input the import dir but neither worked out image image

MeredithD avatar Sep 04 '16 10:09 MeredithD

The second one should be right, but it looks like _getexif() returned None. Sorry, no idea why that would happen. You'll have to debug it to see what's going on.

roblourens avatar Sep 04 '16 12:09 roblourens

same problem seams to be because their is no metadata in picture... (example, picture taken from FB) any solutioN?

lezabour avatar Jan 10 '17 16:01 lezabour

I've got the same problem for the second picture. Did anyone find a solution?

Spiruel avatar Feb 03 '17 19:02 Spiruel

comment or delete line 68 and replace line 74 - return Image.open(filePath)._getexif()[DateTimeOriginalKey] on return Image.open(filePath) in sizeToFace.py

bahshetsian avatar Jun 19 '18 12:06 bahshetsian

I would take a PR if the change makes sense for everyone.

roblourens avatar Jun 19 '18 15:06 roblourens

replace line 74 - return Image.open(filePath)._getexif()[DateTimeOriginalKey] on return Image.open(filePath) in sizeToFace.py After that, replace line 159 - if self._finalImg == None: to if self._finalImg is None: in FaceImage.py Then it is working. Both open errors are cleared. You can close both of them

asitkdash avatar Apr 06 '19 22:04 asitkdash