Replies: 3 comments 1 reply
-
Specifying You can pass custom encoding parameters (i.e. Here is a test for that: pillow_heif/tests/write_test.py Lines 186 to 193 in dc33d11 You can check which parameters are supported by which encoder in the |
Beta Was this translation helpful? Give feedback.
-
heif-enc -A --params
Parameters for encoder `AOMedia Project AV1 Encoder 3.9.1`:
realtime, default=false
speed, default=6, [0;9]
threads, default=12, [1;64]
quality, default=50, [0;100]
lossless, default=false
chroma, default=420, { 420,422,444 }
tune, default=ssim, { psnr,ssim }
min-q, default=0, [0;63]
max-q, default=63, [0;63]
alpha-quality, [0;100]
alpha-min-q, [0;63]
alpha-max-q, [0;63]
lossless-alpha, default=false Image.open("arrow.jpg").save("arrow1.avif", enc_params={"speed": 6})
Image.open("arrow.jpg").save("arrow2.avif", enc_params={"speed": 1})
Image.open("arrow.jpg").save("arrow3.avif", enc_params={"speed": 9}) |
Beta Was this translation helpful? Give feedback.
-
alpha_quality is supported in save or via enc_params only? And is auto tiling available/enabled ? |
Beta Was this translation helpful? Give feedback.
-
Describe the bug
Parameter speed is ignored during image encoding. Doesn't matter what value is set, it is using some default.
Steps/Code to Reproduce
im.save(new_file,format='AVIF', quality=quality, alpha_quality=quality, speed=0)
Expected Results
Speed of encoding will differ for different setting.
Actual Results
Encoding speed is same.
Versions
Beta Was this translation helpful? Give feedback.
All reactions