Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not identifiy image file #4

Open
xvilo opened this issue Feb 20, 2023 · 2 comments
Open

Can not identifiy image file #4

xvilo opened this issue Feb 20, 2023 · 2 comments

Comments

@xvilo
Copy link

xvilo commented Feb 20, 2023

Getting the following exception on MacOS:

$ python3 extract.py --ttc_file /extraced/file/from/ios-sim/ios16.4/AppleColorEmoji-160px.ttc 
extracting sbix chunk to file /Users/xvilo/emoji-extractor-plus/AppleColorEmoji-160px.ttc.xml
Traceback (most recent call last):
  File "/Users/xvilo/emoji-extractor-plus/extract.py", line 170, in <module>
    extract_pngs_from_sbix_xml_file(sbix)
  File "/Users/xvilo/emoji-extractor-plus/extract.py", line 96, in extract_pngs_from_sbix_xml_file
    png_image = Image.open(BytesIO(png_data))
  File "/usr/local/lib/python3.10/site-packages/PIL/Image.py", line 2967, in open
    raise UnidentifiedImageError(
PIL.UnidentifiedImageError: cannot identify image file <_io.BytesIO object at 0x102181b20>

Mainly wanted to report the issue here, don't have the capacity to hunt for a fix atm

@Aleksandar-Borisov
Copy link

I confirm that I have the same issue.

MacOS Sonoma 14.5 (23F79)

Apple clang version 15.0.0 (clang-1500.3.9.4)
Target: arm64-apple-darwin23.5.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin

@alex-py-234
Copy link

Getting the following exception on MacOS:

$ python3 extract.py --ttc_file /extraced/file/from/ios-sim/ios16.4/AppleColorEmoji-160px.ttc 
extracting sbix chunk to file /Users/xvilo/emoji-extractor-plus/AppleColorEmoji-160px.ttc.xml
Traceback (most recent call last):
  File "/Users/xvilo/emoji-extractor-plus/extract.py", line 170, in <module>
    extract_pngs_from_sbix_xml_file(sbix)
  File "/Users/xvilo/emoji-extractor-plus/extract.py", line 96, in extract_pngs_from_sbix_xml_file
    png_image = Image.open(BytesIO(png_data))
  File "/usr/local/lib/python3.10/site-packages/PIL/Image.py", line 2967, in open
    raise UnidentifiedImageError(
PIL.UnidentifiedImageError: cannot identify image file <_io.BytesIO object at 0x102181b20>

Mainly wanted to report the issue here, don't have the capacity to hunt for a fix atm

Have you been able to solve this problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants