title: Lossy conversion from float64 to uint8
body: <p>Code from <em><a href="https://www.makeartwithpython.com/blog/visualizing-sort-algorithms-in-python/" rel="noreferrer">https://www.makeartwithpython.com/blog/visualizing-sort-algorithms-in-python/</a></em></p>
  
  <pre><code>from imageio import imsave
  
  import numpy as np
  
  newImage = np.random.randint(0, 255, (300, 300, 3))
  
  in_hsv_h = color.convert_colorspace(newImage, 'RGB', 'HSV')
  in_hsv_s = in_hsv_h.copy()
  in_hsv_v = in_hsv_h.copy()
  
  for i in range(newImage.shape[0]):
      in_hsv_h[i,:,0] = np.sort(in_hsv_h[i,:,0])
      in_hsv_s[i,:,1] = np.sort(in_hsv_s[i,:,1])
      in_hsv_v[i,:,2] = np.sort(in_hsv_v[i,:,2])
  
  imsave('testing-sorted-hue.png', color.convert_colorspace(in_hsv_h, 'HSV', 'RGB'))
  imsave('testing-sorted-saturation.png', color.convert_colorspace(in_hsv_s, 'HSV', 'RGB'))
  </code></pre>
  
  <p><code>Lossy conversion from float64 to uint8. Range [0, 1]. Convert image to uint8 prior to saving to suppress this warning.</code></p>
  
  <p>Still very inexperienced, any quick way to solve this issue?</p>