Skip to main content
deleted 1018 characters in body
Source Link
Magenta
  • 1.4k
  • 10
  • 12

Python 3, 5797.125628604383

The compression program first truncates the bits of the image, and then converts base 2 to base 36.

The decode program does that in reverse, and re-sizes the image.

from PIL.Image import new
K=bin(int('29zoubbejrojv5nc2c09w8008mmc93di8nsq75g5ep83xtelg14ua2jvhm6ez5gry7isq1g82qvqezkbvl0ibovc6kltldjgklqeg7g5oyfefamfrvei712jnrd8a2ften12xme2bfh654a6r8kfe5xtckpxxt60pujhs02r0zt9a733ofmyhsprmxw9max72f9az1cpsa48szbbi3cl0ah4tusuuin49vtzambzv8omzfa0lt9wkot1p17trvvvvwmrf31g14vvs59ea3uo3k2ycgibgxwnd7qbv6enrynzwhng30thklvk4mvrhf66ba0gqnyf0do6xn9xfjker8fnpr79zac6tsowm6oohszjc16k3a8iisv7yj7i67aq6r7f629zldmv9l816azzu96jikqaw02icsv9b79yy73gbvw0scid9266hph04m6nb3lae5a59d6djauw38i1wtd7qqn17uxugi4r52y0cfpjsb444uj30gih7jmek26uhdn41w2b2g0y34xl1kgxegkjtj6iq1u3k3zk34qtw76hysxj6jl7qrj908pa5vcao6m4i4m2h8sg4ir10mh1y315bakfag611ilwy7y569jh18ydabo5zgdyr7m5vcc9dqxj63nu2s67urqui8gnqu9u40hahyehqu9ugtqf8ab0m1v4fu5pr88k6ch7ep0echekocg78za1f74ladjgm',36))[3:]
a=[]
for x in range(0,len(K),18):
    Y=K[x:x+18]
    y=[Y[0:6],Y[6:12],Y[12:18]]
    for x in range(0,3):
        y[x]=int(y[x],2)*8
    a.append(tuple(y))
i=new('RGB',(16,13))
i.putdata(a)
i.resize((386,320),1).save('2.png')

enter image description here

Edit:

6874.723629373318

The rectangles were made using an optimization algorithm that randomly changes each rectangle's position and color, and only accepts an answer better than before. So far, it is only 658 bytes.

from PIL import Image as I,ImageDraw as D, ImageFilter as F
i=I.new('RGB',(386,320))
K=[[127,176,47,257,85,52,160],[0,319,274,54,52,53,63],[321,0,0,233,84,108,139],[58,0,385,319,52,53,65],[156,318,47,122,33,38,35],[384,140,76,0,68,84,126],[353,140,86,220,79,102,113],[385,195,202,267,63,84,109],[312,162,385,13,127,146,153],[236,270,319,143,47,67,92],[331,198,110,80,103,124,147],[370,213,278,234,73,98,121],[311,54,70,107,88,109,146],[247,16,217,40,114,129,116],[372,23,325,87,183,177,97]]
e=D.Draw(i)
for x in range(0,len(K)):
    x=K[x]
    e.rectangle((x[0],x[1],x[2],x[3]),(x[4],x[5],x[6]))
i=i.filter(F.GaussianBlur(radius=4))
i.save('2.png')

enter image description here

Python 3, 5797.125628604383

The compression program first truncates the bits of the image, and then converts base 2 to base 36.

The decode program does that in reverse, and re-sizes the image.

from PIL.Image import new
K=bin(int('29zoubbejrojv5nc2c09w8008mmc93di8nsq75g5ep83xtelg14ua2jvhm6ez5gry7isq1g82qvqezkbvl0ibovc6kltldjgklqeg7g5oyfefamfrvei712jnrd8a2ften12xme2bfh654a6r8kfe5xtckpxxt60pujhs02r0zt9a733ofmyhsprmxw9max72f9az1cpsa48szbbi3cl0ah4tusuuin49vtzambzv8omzfa0lt9wkot1p17trvvvvwmrf31g14vvs59ea3uo3k2ycgibgxwnd7qbv6enrynzwhng30thklvk4mvrhf66ba0gqnyf0do6xn9xfjker8fnpr79zac6tsowm6oohszjc16k3a8iisv7yj7i67aq6r7f629zldmv9l816azzu96jikqaw02icsv9b79yy73gbvw0scid9266hph04m6nb3lae5a59d6djauw38i1wtd7qqn17uxugi4r52y0cfpjsb444uj30gih7jmek26uhdn41w2b2g0y34xl1kgxegkjtj6iq1u3k3zk34qtw76hysxj6jl7qrj908pa5vcao6m4i4m2h8sg4ir10mh1y315bakfag611ilwy7y569jh18ydabo5zgdyr7m5vcc9dqxj63nu2s67urqui8gnqu9u40hahyehqu9ugtqf8ab0m1v4fu5pr88k6ch7ep0echekocg78za1f74ladjgm',36))[3:]
a=[]
for x in range(0,len(K),18):
    Y=K[x:x+18]
    y=[Y[0:6],Y[6:12],Y[12:18]]
    for x in range(0,3):
        y[x]=int(y[x],2)*8
    a.append(tuple(y))
i=new('RGB',(16,13))
i.putdata(a)
i.resize((386,320),1).save('2.png')

enter image description here

Edit:

6874.723629373318

The rectangles were made using an optimization algorithm that randomly changes each rectangle's position and color, and only accepts an answer better than before. So far, it is only 658 bytes.

from PIL import Image as I,ImageDraw as D, ImageFilter as F
i=I.new('RGB',(386,320))
K=[[127,176,47,257,85,52,160],[0,319,274,54,52,53,63],[321,0,0,233,84,108,139],[58,0,385,319,52,53,65],[156,318,47,122,33,38,35],[384,140,76,0,68,84,126],[353,140,86,220,79,102,113],[385,195,202,267,63,84,109],[312,162,385,13,127,146,153],[236,270,319,143,47,67,92],[331,198,110,80,103,124,147],[370,213,278,234,73,98,121],[311,54,70,107,88,109,146],[247,16,217,40,114,129,116],[372,23,325,87,183,177,97]]
e=D.Draw(i)
for x in range(0,len(K)):
    x=K[x]
    e.rectangle((x[0],x[1],x[2],x[3]),(x[4],x[5],x[6]))
i=i.filter(F.GaussianBlur(radius=4))
i.save('2.png')

enter image description here

Python 3, 5797.125628604383

The compression program first truncates the bits of the image, and then converts base 2 to base 36.

The decode program does that in reverse, and re-sizes the image.

from PIL.Image import new
K=bin(int('29zoubbejrojv5nc2c09w8008mmc93di8nsq75g5ep83xtelg14ua2jvhm6ez5gry7isq1g82qvqezkbvl0ibovc6kltldjgklqeg7g5oyfefamfrvei712jnrd8a2ften12xme2bfh654a6r8kfe5xtckpxxt60pujhs02r0zt9a733ofmyhsprmxw9max72f9az1cpsa48szbbi3cl0ah4tusuuin49vtzambzv8omzfa0lt9wkot1p17trvvvvwmrf31g14vvs59ea3uo3k2ycgibgxwnd7qbv6enrynzwhng30thklvk4mvrhf66ba0gqnyf0do6xn9xfjker8fnpr79zac6tsowm6oohszjc16k3a8iisv7yj7i67aq6r7f629zldmv9l816azzu96jikqaw02icsv9b79yy73gbvw0scid9266hph04m6nb3lae5a59d6djauw38i1wtd7qqn17uxugi4r52y0cfpjsb444uj30gih7jmek26uhdn41w2b2g0y34xl1kgxegkjtj6iq1u3k3zk34qtw76hysxj6jl7qrj908pa5vcao6m4i4m2h8sg4ir10mh1y315bakfag611ilwy7y569jh18ydabo5zgdyr7m5vcc9dqxj63nu2s67urqui8gnqu9u40hahyehqu9ugtqf8ab0m1v4fu5pr88k6ch7ep0echekocg78za1f74ladjgm',36))[3:]
a=[]
for x in range(0,len(K),18):
    Y=K[x:x+18]
    y=[Y[0:6],Y[6:12],Y[12:18]]
    for x in range(0,3):
        y[x]=int(y[x],2)*8
    a.append(tuple(y))
i=new('RGB',(16,13))
i.putdata(a)
i.resize((386,320),1).save('2.png')

enter image description here

added 30 characters in body
Source Link
Magenta
  • 1.4k
  • 10
  • 12

Python 3, 5797.125628604383

The compression program first truncates the bits of the image, and then converts base 2 to base 36.

The decode program does that in reverse, and re-sizes the image.

from PIL.Image import new
K=bin(int('29zoubbejrojv5nc2c09w8008mmc93di8nsq75g5ep83xtelg14ua2jvhm6ez5gry7isq1g82qvqezkbvl0ibovc6kltldjgklqeg7g5oyfefamfrvei712jnrd8a2ften12xme2bfh654a6r8kfe5xtckpxxt60pujhs02r0zt9a733ofmyhsprmxw9max72f9az1cpsa48szbbi3cl0ah4tusuuin49vtzambzv8omzfa0lt9wkot1p17trvvvvwmrf31g14vvs59ea3uo3k2ycgibgxwnd7qbv6enrynzwhng30thklvk4mvrhf66ba0gqnyf0do6xn9xfjker8fnpr79zac6tsowm6oohszjc16k3a8iisv7yj7i67aq6r7f629zldmv9l816azzu96jikqaw02icsv9b79yy73gbvw0scid9266hph04m6nb3lae5a59d6djauw38i1wtd7qqn17uxugi4r52y0cfpjsb444uj30gih7jmek26uhdn41w2b2g0y34xl1kgxegkjtj6iq1u3k3zk34qtw76hysxj6jl7qrj908pa5vcao6m4i4m2h8sg4ir10mh1y315bakfag611ilwy7y569jh18ydabo5zgdyr7m5vcc9dqxj63nu2s67urqui8gnqu9u40hahyehqu9ugtqf8ab0m1v4fu5pr88k6ch7ep0echekocg78za1f74ladjgm',36))[3:]
a=[]
for x in range(0,len(K),18):
    Y=K[x:x+18]
    y=[Y[0:6],Y[6:12],Y[12:18]]
    for x in range(0,3):
        y[x]=int(y[x],2)*8
    a.append(tuple(y))
i=new('RGB',(16,13))
i.putdata(a)
i.resize((386,320),1).save('2.png')

enter image description here

Edit:

6874.723629373318

The rectangles were made using an optimization algorithm that randomly changes each rectangle's position and color, and only accepts an answer better than before. So far, it is only 658 bytes.

from PIL import Image as I,ImageDraw as D, ImageFilter as F
i=I.new('RGB',(386,320))
K=[[127,176,47,257,85,52,160],[0,319,274,54,52,53,63],[321,0,0,233,84,108,139],[58,0,385,319,52,53,65],[156,318,47,122,33,38,35],[384,140,76,0,68,84,126],[353,140,86,220,79,102,113],[385,195,202,267,63,84,109],[312,162,385,13,127,146,153],[236,270,319,143,47,67,92],[331,198,110,80,103,124,147],[370,213,278,234,73,98,121],[311,54,70,107,88,109,146],[247,16,217,40,114,129,116],[372,23,325,87,183,177,97]]
e=D.Draw(i)
for x in range(0,len(K)):
    x=K[x]
    e.rectangle((x[0],x[1],x[2],x[3]),(x[4],x[5],x[6]))
i=i.filter(F.GaussianBlur(radius=4))
i.save('2.png')

enter image description here

Python 3, 5797.125628604383

The compression program first truncates the bits of the image, and then converts base 2 to base 36.

The decode program does that in reverse, and re-sizes the image.

from PIL.Image import new
K=bin(int('29zoubbejrojv5nc2c09w8008mmc93di8nsq75g5ep83xtelg14ua2jvhm6ez5gry7isq1g82qvqezkbvl0ibovc6kltldjgklqeg7g5oyfefamfrvei712jnrd8a2ften12xme2bfh654a6r8kfe5xtckpxxt60pujhs02r0zt9a733ofmyhsprmxw9max72f9az1cpsa48szbbi3cl0ah4tusuuin49vtzambzv8omzfa0lt9wkot1p17trvvvvwmrf31g14vvs59ea3uo3k2ycgibgxwnd7qbv6enrynzwhng30thklvk4mvrhf66ba0gqnyf0do6xn9xfjker8fnpr79zac6tsowm6oohszjc16k3a8iisv7yj7i67aq6r7f629zldmv9l816azzu96jikqaw02icsv9b79yy73gbvw0scid9266hph04m6nb3lae5a59d6djauw38i1wtd7qqn17uxugi4r52y0cfpjsb444uj30gih7jmek26uhdn41w2b2g0y34xl1kgxegkjtj6iq1u3k3zk34qtw76hysxj6jl7qrj908pa5vcao6m4i4m2h8sg4ir10mh1y315bakfag611ilwy7y569jh18ydabo5zgdyr7m5vcc9dqxj63nu2s67urqui8gnqu9u40hahyehqu9ugtqf8ab0m1v4fu5pr88k6ch7ep0echekocg78za1f74ladjgm',36))[3:]
a=[]
for x in range(0,len(K),18):
    Y=K[x:x+18]
    y=[Y[0:6],Y[6:12],Y[12:18]]
    for x in range(0,3):
        y[x]=int(y[x],2)*8
    a.append(tuple(y))
i=new('RGB',(16,13))
i.putdata(a)
i.resize((386,320),1).save('2.png')

enter image description here

Edit:

6874.723629373318

The rectangles were made using an optimization algorithm that randomly changes each rectangle's position and color, and only accepts an answer better than before.

from PIL import Image as I,ImageDraw as D, ImageFilter as F
i=I.new('RGB',(386,320))
K=[[127,176,47,257,85,52,160],[0,319,274,54,52,53,63],[321,0,0,233,84,108,139],[58,0,385,319,52,53,65],[156,318,47,122,33,38,35],[384,140,76,0,68,84,126],[353,140,86,220,79,102,113],[385,195,202,267,63,84,109],[312,162,385,13,127,146,153],[236,270,319,143,47,67,92],[331,198,110,80,103,124,147],[370,213,278,234,73,98,121],[311,54,70,107,88,109,146],[247,16,217,40,114,129,116],[372,23,325,87,183,177,97]]
e=D.Draw(i)
for x in range(0,len(K)):
    x=K[x]
    e.rectangle((x[0],x[1],x[2],x[3]),(x[4],x[5],x[6]))
i=i.filter(F.GaussianBlur(radius=4))
i.save('2.png')

enter image description here

Python 3, 5797.125628604383

The compression program first truncates the bits of the image, and then converts base 2 to base 36.

The decode program does that in reverse, and re-sizes the image.

from PIL.Image import new
K=bin(int('29zoubbejrojv5nc2c09w8008mmc93di8nsq75g5ep83xtelg14ua2jvhm6ez5gry7isq1g82qvqezkbvl0ibovc6kltldjgklqeg7g5oyfefamfrvei712jnrd8a2ften12xme2bfh654a6r8kfe5xtckpxxt60pujhs02r0zt9a733ofmyhsprmxw9max72f9az1cpsa48szbbi3cl0ah4tusuuin49vtzambzv8omzfa0lt9wkot1p17trvvvvwmrf31g14vvs59ea3uo3k2ycgibgxwnd7qbv6enrynzwhng30thklvk4mvrhf66ba0gqnyf0do6xn9xfjker8fnpr79zac6tsowm6oohszjc16k3a8iisv7yj7i67aq6r7f629zldmv9l816azzu96jikqaw02icsv9b79yy73gbvw0scid9266hph04m6nb3lae5a59d6djauw38i1wtd7qqn17uxugi4r52y0cfpjsb444uj30gih7jmek26uhdn41w2b2g0y34xl1kgxegkjtj6iq1u3k3zk34qtw76hysxj6jl7qrj908pa5vcao6m4i4m2h8sg4ir10mh1y315bakfag611ilwy7y569jh18ydabo5zgdyr7m5vcc9dqxj63nu2s67urqui8gnqu9u40hahyehqu9ugtqf8ab0m1v4fu5pr88k6ch7ep0echekocg78za1f74ladjgm',36))[3:]
a=[]
for x in range(0,len(K),18):
    Y=K[x:x+18]
    y=[Y[0:6],Y[6:12],Y[12:18]]
    for x in range(0,3):
        y[x]=int(y[x],2)*8
    a.append(tuple(y))
i=new('RGB',(16,13))
i.putdata(a)
i.resize((386,320),1).save('2.png')

enter image description here

Edit:

6874.723629373318

The rectangles were made using an optimization algorithm that randomly changes each rectangle's position and color, and only accepts an answer better than before. So far, it is only 658 bytes.

from PIL import Image as I,ImageDraw as D, ImageFilter as F
i=I.new('RGB',(386,320))
K=[[127,176,47,257,85,52,160],[0,319,274,54,52,53,63],[321,0,0,233,84,108,139],[58,0,385,319,52,53,65],[156,318,47,122,33,38,35],[384,140,76,0,68,84,126],[353,140,86,220,79,102,113],[385,195,202,267,63,84,109],[312,162,385,13,127,146,153],[236,270,319,143,47,67,92],[331,198,110,80,103,124,147],[370,213,278,234,73,98,121],[311,54,70,107,88,109,146],[247,16,217,40,114,129,116],[372,23,325,87,183,177,97]]
e=D.Draw(i)
for x in range(0,len(K)):
    x=K[x]
    e.rectangle((x[0],x[1],x[2],x[3]),(x[4],x[5],x[6]))
i=i.filter(F.GaussianBlur(radius=4))
i.save('2.png')

enter image description here

update results of optimization
Source Link
Magenta
  • 1.4k
  • 10
  • 12

Python 3, 5797.125628604383

The compression program first truncates the bits of the image, and then converts base 2 to base 36.

The decode program does that in reverse, and re-sizes the image.

from PIL.Image import new
K=bin(int('29zoubbejrojv5nc2c09w8008mmc93di8nsq75g5ep83xtelg14ua2jvhm6ez5gry7isq1g82qvqezkbvl0ibovc6kltldjgklqeg7g5oyfefamfrvei712jnrd8a2ften12xme2bfh654a6r8kfe5xtckpxxt60pujhs02r0zt9a733ofmyhsprmxw9max72f9az1cpsa48szbbi3cl0ah4tusuuin49vtzambzv8omzfa0lt9wkot1p17trvvvvwmrf31g14vvs59ea3uo3k2ycgibgxwnd7qbv6enrynzwhng30thklvk4mvrhf66ba0gqnyf0do6xn9xfjker8fnpr79zac6tsowm6oohszjc16k3a8iisv7yj7i67aq6r7f629zldmv9l816azzu96jikqaw02icsv9b79yy73gbvw0scid9266hph04m6nb3lae5a59d6djauw38i1wtd7qqn17uxugi4r52y0cfpjsb444uj30gih7jmek26uhdn41w2b2g0y34xl1kgxegkjtj6iq1u3k3zk34qtw76hysxj6jl7qrj908pa5vcao6m4i4m2h8sg4ir10mh1y315bakfag611ilwy7y569jh18ydabo5zgdyr7m5vcc9dqxj63nu2s67urqui8gnqu9u40hahyehqu9ugtqf8ab0m1v4fu5pr88k6ch7ep0echekocg78za1f74ladjgm',36))[3:]
a=[]
for x in range(0,len(K),18):
    Y=K[x:x+18]
    y=[Y[0:6],Y[6:12],Y[12:18]]
    for x in range(0,3):
        y[x]=int(y[x],2)*8
    a.append(tuple(y))
i=new('RGB',(16,13))
i.putdata(a)
i.resize((386,320),1).save('2.png')

enter image description here

Edit:

72186874.831434063822723629373318

The rectangles were made using an optimization algorithm that randomly changes each rectangle's position and color, and only accepts an answer better than before.

from PIL import Image as I,ImageDraw as D, ImageFilter as F
import time
i=I.new('RGB',(386,320))
K=[[383K=[[127,311176,9847,2257,85,8652,50]160],[0,319,233274,8354,4952,5753,63],[228[321,0,0,233,84,105108,137]139],[59[58,130,385,319,52,5853,68]65],[284[156,317318,47,121122,3633,4238,45]35],[385[384,136140,7576,0,68,8684,128]126],[255[353,55140,8886,219220,9679,118102,140]113],[385,69195,201202,267,7063,8784,112]109],[312,162,385,1413,158127,168146,131]153],[231[236,315270,321319,200143,4947,6067,81]92],[324[331,198,201110,6280,100103,125124,148]147],[322[370,209213,300278,253234,6373,8298,116]121],[257[311,7654,13370,96107,7988,102109,141]146],[248[247,16,143217,3040,84114,99129,122]116],[384[372,9423,233325,12987,83183,112177,151]]97]]
e=D.Draw(i)
for x in range(0,len(K)):
    x=K[x]
    e.rectangle((x[0],x[1],x[2],x[3]),(x[4],x[5],x[6]))
i=i.filter(F.GaussianBlur(radius=4))
i.save('2.png')

enter image description hereenter image description here

Python 3, 5797.125628604383

The compression program first truncates the bits of the image, and then converts base 2 to base 36.

The decode program does that in reverse, and re-sizes the image.

from PIL.Image import new
K=bin(int('29zoubbejrojv5nc2c09w8008mmc93di8nsq75g5ep83xtelg14ua2jvhm6ez5gry7isq1g82qvqezkbvl0ibovc6kltldjgklqeg7g5oyfefamfrvei712jnrd8a2ften12xme2bfh654a6r8kfe5xtckpxxt60pujhs02r0zt9a733ofmyhsprmxw9max72f9az1cpsa48szbbi3cl0ah4tusuuin49vtzambzv8omzfa0lt9wkot1p17trvvvvwmrf31g14vvs59ea3uo3k2ycgibgxwnd7qbv6enrynzwhng30thklvk4mvrhf66ba0gqnyf0do6xn9xfjker8fnpr79zac6tsowm6oohszjc16k3a8iisv7yj7i67aq6r7f629zldmv9l816azzu96jikqaw02icsv9b79yy73gbvw0scid9266hph04m6nb3lae5a59d6djauw38i1wtd7qqn17uxugi4r52y0cfpjsb444uj30gih7jmek26uhdn41w2b2g0y34xl1kgxegkjtj6iq1u3k3zk34qtw76hysxj6jl7qrj908pa5vcao6m4i4m2h8sg4ir10mh1y315bakfag611ilwy7y569jh18ydabo5zgdyr7m5vcc9dqxj63nu2s67urqui8gnqu9u40hahyehqu9ugtqf8ab0m1v4fu5pr88k6ch7ep0echekocg78za1f74ladjgm',36))[3:]
a=[]
for x in range(0,len(K),18):
    Y=K[x:x+18]
    y=[Y[0:6],Y[6:12],Y[12:18]]
    for x in range(0,3):
        y[x]=int(y[x],2)*8
    a.append(tuple(y))
i=new('RGB',(16,13))
i.putdata(a)
i.resize((386,320),1).save('2.png')

enter image description here

Edit:

7218.831434063822

The rectangles were made using an optimization algorithm that randomly changes each rectangle's position and color, and only accepts an answer better than before.

from PIL import Image as I,ImageDraw as D, ImageFilter as F
import time
i=I.new('RGB',(386,320))
K=[[383,311,98,2,85,86,50],[0,319,233,83,49,57,63],[228,0,0,233,84,105,137],[59,13,385,319,52,58,68],[284,317,47,121,36,42,45],[385,136,75,0,68,86,128],[255,55,88,219,96,118,140],[385,69,201,267,70,87,112],[312,162,385,14,158,168,131],[231,315,321,200,49,60,81],[324,198,201,62,100,125,148],[322,209,300,253,63,82,116],[257,76,133,96,79,102,141],[248,16,143,30,84,99,122],[384,94,233,129,83,112,151]]
e=D.Draw(i)
for x in range(0,len(K)):
    x=K[x]
    e.rectangle((x[0],x[1],x[2],x[3]),(x[4],x[5],x[6]))
i=i.filter(F.GaussianBlur(radius=4))
i.save('2.png')

enter image description here

Python 3, 5797.125628604383

The compression program first truncates the bits of the image, and then converts base 2 to base 36.

The decode program does that in reverse, and re-sizes the image.

from PIL.Image import new
K=bin(int('29zoubbejrojv5nc2c09w8008mmc93di8nsq75g5ep83xtelg14ua2jvhm6ez5gry7isq1g82qvqezkbvl0ibovc6kltldjgklqeg7g5oyfefamfrvei712jnrd8a2ften12xme2bfh654a6r8kfe5xtckpxxt60pujhs02r0zt9a733ofmyhsprmxw9max72f9az1cpsa48szbbi3cl0ah4tusuuin49vtzambzv8omzfa0lt9wkot1p17trvvvvwmrf31g14vvs59ea3uo3k2ycgibgxwnd7qbv6enrynzwhng30thklvk4mvrhf66ba0gqnyf0do6xn9xfjker8fnpr79zac6tsowm6oohszjc16k3a8iisv7yj7i67aq6r7f629zldmv9l816azzu96jikqaw02icsv9b79yy73gbvw0scid9266hph04m6nb3lae5a59d6djauw38i1wtd7qqn17uxugi4r52y0cfpjsb444uj30gih7jmek26uhdn41w2b2g0y34xl1kgxegkjtj6iq1u3k3zk34qtw76hysxj6jl7qrj908pa5vcao6m4i4m2h8sg4ir10mh1y315bakfag611ilwy7y569jh18ydabo5zgdyr7m5vcc9dqxj63nu2s67urqui8gnqu9u40hahyehqu9ugtqf8ab0m1v4fu5pr88k6ch7ep0echekocg78za1f74ladjgm',36))[3:]
a=[]
for x in range(0,len(K),18):
    Y=K[x:x+18]
    y=[Y[0:6],Y[6:12],Y[12:18]]
    for x in range(0,3):
        y[x]=int(y[x],2)*8
    a.append(tuple(y))
i=new('RGB',(16,13))
i.putdata(a)
i.resize((386,320),1).save('2.png')

enter image description here

Edit:

6874.723629373318

The rectangles were made using an optimization algorithm that randomly changes each rectangle's position and color, and only accepts an answer better than before.

from PIL import Image as I,ImageDraw as D, ImageFilter as F
i=I.new('RGB',(386,320))
K=[[127,176,47,257,85,52,160],[0,319,274,54,52,53,63],[321,0,0,233,84,108,139],[58,0,385,319,52,53,65],[156,318,47,122,33,38,35],[384,140,76,0,68,84,126],[353,140,86,220,79,102,113],[385,195,202,267,63,84,109],[312,162,385,13,127,146,153],[236,270,319,143,47,67,92],[331,198,110,80,103,124,147],[370,213,278,234,73,98,121],[311,54,70,107,88,109,146],[247,16,217,40,114,129,116],[372,23,325,87,183,177,97]]
e=D.Draw(i)
for x in range(0,len(K)):
    x=K[x]
    e.rectangle((x[0],x[1],x[2],x[3]),(x[4],x[5],x[6]))
i=i.filter(F.GaussianBlur(radius=4))
i.save('2.png')

enter image description here

added 971 characters in body
Source Link
Magenta
  • 1.4k
  • 10
  • 12
Loading
added 90 characters in body
Source Link
Magenta
  • 1.4k
  • 10
  • 12
Loading
added 172 characters in body
Source Link
Magenta
  • 1.4k
  • 10
  • 12
Loading
Source Link
Magenta
  • 1.4k
  • 10
  • 12
Loading