I was trying to use the MultiBend tool when I came across this error.
$ python bird_bahharbor.py
DEBUG:root:converted to bird_barharbor/P9270711.png.bmp
INFO:root:Bending frames/frame_0000.bmp to frames/frame_0000.bmp
INFO:root:Bending frames/frame_0001.bmp to frames/frame_0001.bmp
INFO:root:Bending frames/frame_0002.bmp to frames/frame_0002.bmp
INFO:root:Bending frames/frame_0003.bmp to frames/frame_0003.bmp
INFO:root:Bending frames/frame_0004.bmp to frames/frame_0004.bmp
INFO:root:Bending frames/frame_0005.bmp to frames/frame_0005.bmp
INFO:root:Bending frames/frame_0006.bmp to frames/frame_0006.bmp
INFO:root:Bending frames/frame_0007.bmp to frames/frame_0007.bmp
INFO:root:Bending frames/frame_0008.bmp to frames/frame_0008.bmp
INFO:root:Bending frames/frame_0009.bmp to frames/frame_0009.bmp
INFO:root:Bending frames/frame_0010.bmp to frames/frame_0010.bmp
INFO:root:Bending frames/frame_0011.bmp to frames/frame_0011.bmp
INFO:root:Bending frames/frame_0012.bmp to frames/frame_0012.bmp
INFO:root:Bending frames/frame_0013.bmp to frames/frame_0013.bmp
INFO:root:Bending frames/frame_0014.bmp to frames/frame_0014.bmp
INFO:root:Bending frames/frame_0015.bmp to frames/frame_0015.bmp
INFO:root:Bending frames/frame_0016.bmp to frames/frame_0016.bmp
INFO:root:Bending frames/frame_0017.bmp to frames/frame_0017.bmp
INFO:root:Bending frames/frame_0018.bmp to frames/frame_0018.bmp
INFO:root:Bending frames/frame_0019.bmp to frames/frame_0019.bmp
INFO:root:Bending frames/frame_0020.bmp to frames/frame_0020.bmp
INFO:root:Bending frames/frame_0021.bmp to frames/frame_0021.bmp
INFO:root:Bending frames/frame_0022.bmp to frames/frame_0022.bmp
INFO:root:Bending frames/frame_0023.bmp to frames/frame_0023.bmp
INFO:root:animating bent gif: bird_barharbor/bent/bird8.gif
total frames to animate: 24
Traceback (most recent call last):
File "/home/hypha/Desktop/databend/sockbend/bird_bahharbor.py", line 67, in <module>
mb.bend_uniform(
~~~~~~~~~~~~~~~^
[
^
...<7 lines>...
gif_path="bird_barharbor/bent/bird8.gif"
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/home/hypha/Desktop/databend/sockbend/sockbend.py", line 161, in bend_uniform
self.bend_varying([effects_and_kwargs] * len(self.benders), **kwargs)
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/hypha/Desktop/databend/sockbend/sockbend.py", line 178, in bend_varying
animator.make_gif(new_frame_paths, self.save_kwargs, gif_path)
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/hypha/Desktop/databend/sockbend/animator.py", line 32, in make_gif
frames[0].save(
~~~~~~~~~~~~~~^
gif_path,
^^^^^^^^^
...<4 lines>...
**save_kwargs
^^^^^^^^^^^^^
)
^
TypeError: PIL.Image.Image.save() got multiple values for keyword argument 'transparency'
Code I used:
EXAMPLE_INPUT_GIF = "bird_barharbor/bent/bird7.gif"
mb = sockbend.MultiBender(EXAMPLE_INPUT_GIF)
mb.bend_uniform(
[
(
"bass",
{
"gain_db": 1.5
}
)
],
gif_path="bird_barharbor/bent/bird8.gif"
)
If I had to guess the non masking part of the bend tools doesn't like transparency. GIF seems iffy when it comes to transparency.
I was trying to use the MultiBend tool when I came across this error.
Code I used:
If I had to guess the non masking part of the bend tools doesn't like transparency. GIF seems iffy when it comes to transparency.