Skip to content

Commit

Permalink
Replace 'tostring' by 'tobytes' in 'video.io.gif_writers::write_gif' (#…
Browse files Browse the repository at this point in the history
…1429)

* Replace 'tostring' by 'tobytes' in 'video.io.gif_writers::write_gif'

* Document change
  • Loading branch information
mondeja authored Jan 13, 2021
1 parent aa861a6 commit 09de608
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Lots of method and parameter names have been changed. This will be explained bet
### Fixed <!-- for any bug fixes -->
- Fixed BitmapClip with fps != 1 not returning the correct frames or crashing [#1333]
- Fixed `rotate` sometimes failing with `ValueError: axes don't match array` [#1335]

- Changed deprecated `tostring` method by `tobytes` in `video.io.gif_writers::write_gif` #1429

## [v2.0.0.dev2](https://github.com/zulko/moviepy/tree/v2.0.0.dev2)

Expand Down
2 changes: 1 addition & 1 deletion moviepy/video/io/gif_writers.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ def write_gif(
if with_mask:
mask = 255 * clip.mask.get_frame(t)
frame = np.dstack([frame, mask]).astype("uint8")
proc1.stdin.write(frame.tostring())
proc1.stdin.write(frame.tobytes())

except IOError as err:

Expand Down

0 comments on commit 09de608

Please sign in to comment.