staghado commited on
Commit
1b9b1dc
·
1 Parent(s): f65d6e3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -94,7 +94,7 @@ def fourier_transform_drawing(input_image, frames, coefficients, img_size, blur_
94
  # Generate final animation as GIF
95
  anim = animation.FuncAnimation(fig, animate, frames=frames, interval=5, fargs=(coefs, np.linspace(0, 1, num=frames)))
96
  gif_buf = io.BytesIO()
97
- anim.save(gif_buf, 'output.gif', writer='imagemagick', fps=15)
98
  gif_buf.seek(0)
99
  final_gif = Image.open(gif_buf)
100
  final_gif = np.array(final_gif.convert('RGB'))
 
94
  # Generate final animation as GIF
95
  anim = animation.FuncAnimation(fig, animate, frames=frames, interval=5, fargs=(coefs, np.linspace(0, 1, num=frames)))
96
  gif_buf = io.BytesIO()
97
+ anim.save(gif_buf, 'output.gif', fps=15)
98
  gif_buf.seek(0)
99
  final_gif = Image.open(gif_buf)
100
  final_gif = np.array(final_gif.convert('RGB'))