%run ../common.ipynb image = imread('mp.tif') imsave('mp.png', image) png_image = ndimage.imread('mp.png')
Populating the interactive namespace from numpy and matplotlib
np.all(image == png_image)
True
!du -h mp.tif mp.png
5.7M mp.tif 1.6M mp.png