Pandede

Results 18 comments of Pandede

Importing `LoadingStrategy` is due to this issue https://github.com/imageio/imageio/issues/1030 and I fixed it according to this PR https://github.com/python-pillow/Pillow/pull/6150. I may make a PR to lock the mode to `RGB` when loading...

For the first question, you may modify the quality via `crf`: https://trac.ffmpeg.org/wiki/Encode/H.264#crf. For the vanilla `pyav`, writing the video with specific `crf` can invoke the `av.open` like: ```python import av...

PNG supports 24-bits colors while GIF only supports 8-bits colors, I think that's the reason why it is inadequate.

> Cheers @Pandede, I suppose this is the root problem, but other gif-making tools provide some options on how to choose the 256 color palette, and sometimes offer dithering, for...

> ``` > Traceback (most recent call last): > File "", line 1, in > imageio.v3.imread(r"test.tif", mode="L") > File "C:\Python311\site-packages\imageio\v3.py", line 54, in imread > return np.asarray(img_file.read(**call_kwargs)) > File "C:\Python311\site-packages\imageio\plugins\tifffile_v3.py",...

Did the systems have different version of `opencv`? It seems the default flags of `cv2.imread` is changed since an unknown version. However, you may change the flags in `imageio`: ```python...

@Shrinidhibhat87 The version of mine is `2.31.6`. I guess the error is raised as the plugin for reading the image is not `opencv`. Try this: ```python import imageio.v3 as iio...

You may use `plugin="pillow"` to write a GIF (if `pyav` is not mandatory): ```python3 import imageio.v3 as iio import numpy as np frame_list = [ np.zeros((200, 200, 3), dtype=np.uint8), np.zeros((200,...