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

BLP1 files are not handled #4684

Closed
Meithal opened this issue Jun 12, 2020 · 0 comments · Fixed by #4685
Closed

BLP1 files are not handled #4684

Meithal opened this issue Jun 12, 2020 · 0 comments · Fixed by #4685
Labels
Bug Any unexpected behavior, until confirmed feature.

Comments

@Meithal
Copy link
Contributor

Meithal commented Jun 12, 2020

What did you do?

I tried to open a BLP1 file

What did you expect to happen?

I expected to see the image

What actually happened?

I saw a black square

What are your OS, Python and Pillow versions?

  • OS: Windows10 x64
  • Python: 3.7
  • Pillow: 7.2

You first need a blp1 picture, I think it is a proprietary format so i'm not sure I can put one here
To easily get one go on https://www.epicwar.com, download a map then open it with a MPQ viewer, every map has a thumbnail in the blp1 format.

from PIL import Image
with Image.open("file.blp") as pil:
    convert = pil.convert('RGB')
    convert.show()
    convert.save((work_folder / name).with_suffix('.jpg'))
@radarhere radarhere added the Bug Any unexpected behavior, until confirmed feature. label Jun 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Any unexpected behavior, until confirmed feature.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants