title: How to resize images with imageio to get proper ICO files?
body: <p>I want to save ICO files from images. <code>imageio</code> is working perfectly, but for horizontal images, it gave me an error.</p>
  <p>This is my code:</p>
  <pre><code>import imageio
  image = imageio.imread('image.png')
  imageio.imwrite(&quot;image.ico&quot;, image)
  </code></pre>