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

Looking forward to the "write" operation #76

Open
XiaoqiangZhou opened this issue Mar 22, 2022 · 3 comments
Open

Looking forward to the "write" operation #76

XiaoqiangZhou opened this issue Mar 22, 2022 · 3 comments

Comments

@XiaoqiangZhou
Copy link

Thanks for your great work. I'm really looking forward to the write operation.

@XiaoqiangZhou
Copy link
Author

I want to encode a PIL Image Array with heif compression, and I need to specify the compress image quality manually. Like the way in opencv:

result, encimg = cv2.imencode('.jpg', img, [int(cv2.IMWRITE_JPEG_QUALITY), random.randint(30, 95)])
img = cv2.imdecode(encimg, 1),

where img is a numpy array.
Is there any easy implementation for such imencode and imdecode functions? Thanks.

@lupsin
Copy link

lupsin commented Nov 19, 2022

Will this functionality be added over time? annoying that we do not have such opportunities for python.
And looks like in this wheels already x265 encoder present, just missing api for that

@lupsin
Copy link

lupsin commented Nov 21, 2022

whatever, looks like pillow-heif has an API for that, I need to google better next time

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

2 participants