def test_shrink( ) : import url import change import palette location = input( 'Enter image location: ' ) original = url.get_image( location ) palettes = palette.create() for p in palettes : filename = 'palette_' + str( len(p) ) + '.png' im = change.shrink( original, p ) im.show() if ( __name__ == '__main__' ) : test_shrink( )