diff options
-rw-r--r--[-rwxr-xr-x] | common/screensaver/Screensaver-01.jpg | bin | 117969 -> 105562 bytes | |||
-rw-r--r--[-rwxr-xr-x] | common/screensaver/Screensaver-02.jpg | bin | 831725 -> 186999 bytes | |||
-rw-r--r--[-rwxr-xr-x] | common/screensaver/Screensaver-03.jpg | bin | 491515 -> 130137 bytes | |||
-rw-r--r--[-rwxr-xr-x] | common/screensaver/Screensaver-04.jpg | bin | 231743 -> 60863 bytes | |||
-rw-r--r--[-rwxr-xr-x] | common/screensaver/Screensaver-05.jpg | bin | 332932 -> 151926 bytes | |||
-rw-r--r--[-rwxr-xr-x] | common/screensaver/Screensaver-06.jpg | bin | 246153 -> 77020 bytes | |||
-rw-r--r--[-rwxr-xr-x] | common/screensaver/Screensaver-07.jpg | bin | 164536 -> 431127 bytes | |||
-rw-r--r--[-rwxr-xr-x] | common/screensaver/Screensaver-08.jpg | bin | 441634 -> 238097 bytes | |||
-rw-r--r--[-rwxr-xr-x] | common/screensaver/Screensaver-09.jpg | bin | 202227 -> 1350046 bytes | |||
-rw-r--r--[-rwxr-xr-x] | common/screensaver/Screensaver-10.jpg | bin | 347182 -> 81699 bytes | |||
-rw-r--r--[-rwxr-xr-x] | common/screensaver/Screensaver-11.jpg | bin | 165010 -> 130336 bytes | |||
-rw-r--r--[-rwxr-xr-x] | common/screensaver/Screensaver-12.jpg | bin | 119693 -> 160056 bytes | |||
-rw-r--r--[-rwxr-xr-x] | common/screensaver/Screensaver-13.jpg | bin | 127091 -> 117548 bytes | |||
-rw-r--r--[-rwxr-xr-x] | common/screensaver/Screensaver-14.jpg | bin | 551105 -> 109939 bytes | |||
-rw-r--r--[-rwxr-xr-x] | common/screensaver/Screensaver-15.jpg | bin | 617841 -> 675512 bytes | |||
-rw-r--r--[-rwxr-xr-x] | common/screensaver/Screensaver-16.jpg | bin | 316144 -> 1103602 bytes | |||
-rw-r--r--[-rwxr-xr-x] | common/screensaver/Screensaver-17.jpg | bin | 239726 -> 154422 bytes | |||
-rw-r--r--[-rwxr-xr-x] | common/screensaver/Screensaver-18.jpg | bin | 233068 -> 180507 bytes | |||
-rw-r--r--[-rwxr-xr-x] | common/screensaver/Screensaver-19.jpg | bin | 264354 -> 103350 bytes | |||
-rw-r--r--[-rwxr-xr-x] | common/screensaver/Screensaver-20.jpg | bin | 458042 -> 612239 bytes | |||
-rw-r--r--[-rwxr-xr-x] | common/screensaver/Screensaver-21.jpg | bin | 463125 -> 500437 bytes | |||
-rw-r--r--[-rwxr-xr-x] | common/screensaver/Screensaver-22.jpg | bin | 477609 -> 379210 bytes | |||
-rw-r--r--[-rwxr-xr-x] | common/screensaver/Screensaver-23.jpg | bin | 164540 -> 1569985 bytes | |||
-rw-r--r--[-rwxr-xr-x] | common/screensaver/Screensaver-24.jpg | bin | 196004 -> 177673 bytes | |||
-rw-r--r--[-rwxr-xr-x] | common/screensaver/Screensaver-25.jpg | bin | 142400 -> 978817 bytes | |||
-rw-r--r--[-rwxr-xr-x] | common/screensaver/Screensaver-26.jpg | bin | 325956 -> 459365 bytes | |||
-rw-r--r-- | common/screensaver/Screensaver-27.jpg | bin | 0 -> 158873 bytes | |||
-rw-r--r-- | common/screensaver/Screensaver-28.jpg | bin | 0 -> 1590238 bytes | |||
-rw-r--r-- | common/screensaver/Screensaver-29.jpg | bin | 0 -> 569980 bytes | |||
-rw-r--r-- | common/screensaver/mirror.py | 47 |
30 files changed, 47 insertions, 0 deletions
diff --git a/common/screensaver/Screensaver-01.jpg b/common/screensaver/Screensaver-01.jpg Binary files differindex dda12cc..68af336 100755..100644 --- a/common/screensaver/Screensaver-01.jpg +++ b/common/screensaver/Screensaver-01.jpg diff --git a/common/screensaver/Screensaver-02.jpg b/common/screensaver/Screensaver-02.jpg Binary files differindex b2e8660..984d085 100755..100644 --- a/common/screensaver/Screensaver-02.jpg +++ b/common/screensaver/Screensaver-02.jpg diff --git a/common/screensaver/Screensaver-03.jpg b/common/screensaver/Screensaver-03.jpg Binary files differindex 9641383..9a70314 100755..100644 --- a/common/screensaver/Screensaver-03.jpg +++ b/common/screensaver/Screensaver-03.jpg diff --git a/common/screensaver/Screensaver-04.jpg b/common/screensaver/Screensaver-04.jpg Binary files differindex d19597a..c12c9ff 100755..100644 --- a/common/screensaver/Screensaver-04.jpg +++ b/common/screensaver/Screensaver-04.jpg diff --git a/common/screensaver/Screensaver-05.jpg b/common/screensaver/Screensaver-05.jpg Binary files differindex f35e65c..073d284 100755..100644 --- a/common/screensaver/Screensaver-05.jpg +++ b/common/screensaver/Screensaver-05.jpg diff --git a/common/screensaver/Screensaver-06.jpg b/common/screensaver/Screensaver-06.jpg Binary files differindex 01dedfa..868267e 100755..100644 --- a/common/screensaver/Screensaver-06.jpg +++ b/common/screensaver/Screensaver-06.jpg diff --git a/common/screensaver/Screensaver-07.jpg b/common/screensaver/Screensaver-07.jpg Binary files differindex 3cd5f99..77bbc8c 100755..100644 --- a/common/screensaver/Screensaver-07.jpg +++ b/common/screensaver/Screensaver-07.jpg diff --git a/common/screensaver/Screensaver-08.jpg b/common/screensaver/Screensaver-08.jpg Binary files differindex adac11f..08f3534 100755..100644 --- a/common/screensaver/Screensaver-08.jpg +++ b/common/screensaver/Screensaver-08.jpg diff --git a/common/screensaver/Screensaver-09.jpg b/common/screensaver/Screensaver-09.jpg Binary files differindex 6219d83..2b73897 100755..100644 --- a/common/screensaver/Screensaver-09.jpg +++ b/common/screensaver/Screensaver-09.jpg diff --git a/common/screensaver/Screensaver-10.jpg b/common/screensaver/Screensaver-10.jpg Binary files differindex 3fd4046..343d0d5 100755..100644 --- a/common/screensaver/Screensaver-10.jpg +++ b/common/screensaver/Screensaver-10.jpg diff --git a/common/screensaver/Screensaver-11.jpg b/common/screensaver/Screensaver-11.jpg Binary files differindex ca680bd..7365f6e 100755..100644 --- a/common/screensaver/Screensaver-11.jpg +++ b/common/screensaver/Screensaver-11.jpg diff --git a/common/screensaver/Screensaver-12.jpg b/common/screensaver/Screensaver-12.jpg Binary files differindex 1857103..9b44bf4 100755..100644 --- a/common/screensaver/Screensaver-12.jpg +++ b/common/screensaver/Screensaver-12.jpg diff --git a/common/screensaver/Screensaver-13.jpg b/common/screensaver/Screensaver-13.jpg Binary files differindex fe4696b..77cb810 100755..100644 --- a/common/screensaver/Screensaver-13.jpg +++ b/common/screensaver/Screensaver-13.jpg diff --git a/common/screensaver/Screensaver-14.jpg b/common/screensaver/Screensaver-14.jpg Binary files differindex 3627b45..0480188 100755..100644 --- a/common/screensaver/Screensaver-14.jpg +++ b/common/screensaver/Screensaver-14.jpg diff --git a/common/screensaver/Screensaver-15.jpg b/common/screensaver/Screensaver-15.jpg Binary files differindex a09d0aa..e04c31b 100755..100644 --- a/common/screensaver/Screensaver-15.jpg +++ b/common/screensaver/Screensaver-15.jpg diff --git a/common/screensaver/Screensaver-16.jpg b/common/screensaver/Screensaver-16.jpg Binary files differindex 360c967..9377c52 100755..100644 --- a/common/screensaver/Screensaver-16.jpg +++ b/common/screensaver/Screensaver-16.jpg diff --git a/common/screensaver/Screensaver-17.jpg b/common/screensaver/Screensaver-17.jpg Binary files differindex 7ea74cf..ec113dc 100755..100644 --- a/common/screensaver/Screensaver-17.jpg +++ b/common/screensaver/Screensaver-17.jpg diff --git a/common/screensaver/Screensaver-18.jpg b/common/screensaver/Screensaver-18.jpg Binary files differindex 7e1b6de..feb3807 100755..100644 --- a/common/screensaver/Screensaver-18.jpg +++ b/common/screensaver/Screensaver-18.jpg diff --git a/common/screensaver/Screensaver-19.jpg b/common/screensaver/Screensaver-19.jpg Binary files differindex 5c1ea80..e552ffa 100755..100644 --- a/common/screensaver/Screensaver-19.jpg +++ b/common/screensaver/Screensaver-19.jpg diff --git a/common/screensaver/Screensaver-20.jpg b/common/screensaver/Screensaver-20.jpg Binary files differindex f5a89fa..32fa3ad 100755..100644 --- a/common/screensaver/Screensaver-20.jpg +++ b/common/screensaver/Screensaver-20.jpg diff --git a/common/screensaver/Screensaver-21.jpg b/common/screensaver/Screensaver-21.jpg Binary files differindex ea2885d..5936b84 100755..100644 --- a/common/screensaver/Screensaver-21.jpg +++ b/common/screensaver/Screensaver-21.jpg diff --git a/common/screensaver/Screensaver-22.jpg b/common/screensaver/Screensaver-22.jpg Binary files differindex 58fa3ae..0846931 100755..100644 --- a/common/screensaver/Screensaver-22.jpg +++ b/common/screensaver/Screensaver-22.jpg diff --git a/common/screensaver/Screensaver-23.jpg b/common/screensaver/Screensaver-23.jpg Binary files differindex 266e420..dbbcfa2 100755..100644 --- a/common/screensaver/Screensaver-23.jpg +++ b/common/screensaver/Screensaver-23.jpg diff --git a/common/screensaver/Screensaver-24.jpg b/common/screensaver/Screensaver-24.jpg Binary files differindex b7441a2..807ee67 100755..100644 --- a/common/screensaver/Screensaver-24.jpg +++ b/common/screensaver/Screensaver-24.jpg diff --git a/common/screensaver/Screensaver-25.jpg b/common/screensaver/Screensaver-25.jpg Binary files differindex a8ed4cd..fd46203 100755..100644 --- a/common/screensaver/Screensaver-25.jpg +++ b/common/screensaver/Screensaver-25.jpg diff --git a/common/screensaver/Screensaver-26.jpg b/common/screensaver/Screensaver-26.jpg Binary files differindex 67dcc76..2ed5da3 100755..100644 --- a/common/screensaver/Screensaver-26.jpg +++ b/common/screensaver/Screensaver-26.jpg diff --git a/common/screensaver/Screensaver-27.jpg b/common/screensaver/Screensaver-27.jpg Binary files differnew file mode 100644 index 0000000..779008f --- /dev/null +++ b/common/screensaver/Screensaver-27.jpg diff --git a/common/screensaver/Screensaver-28.jpg b/common/screensaver/Screensaver-28.jpg Binary files differnew file mode 100644 index 0000000..78a2348 --- /dev/null +++ b/common/screensaver/Screensaver-28.jpg diff --git a/common/screensaver/Screensaver-29.jpg b/common/screensaver/Screensaver-29.jpg Binary files differnew file mode 100644 index 0000000..664d94e --- /dev/null +++ b/common/screensaver/Screensaver-29.jpg diff --git a/common/screensaver/mirror.py b/common/screensaver/mirror.py new file mode 100644 index 0000000..5c7c925 --- /dev/null +++ b/common/screensaver/mirror.py @@ -0,0 +1,47 @@ +# coding:utf-8 + +# !/usr/bin/env python3 +from PIL import Image, ImageOps + +liste = """52272434262_08161ca956_k.jpg 52273667914_c67e59883f_k.jpg 52273896340_a5d7a5b569_k.jpg 52282000756_4350b904a6_o.png 52439772940_0a908517fd_k.jpg +52272434422_6e763311e0_k.jpg 52273667939_00a7a82d85_k.jpg 52273896530_32364a5ae9_k.jpg 52282013983_431b84da93_o.png 52439843783_6b199f85d8_k.jpg +52273406946_9270259682_k.jpg 52273668079_69d33c4f5d_k.jpg 52281021382_92b4cfc3ce_o.png 52282014418_6df2d3ddbd_o.png 52439844463_fed718866f_k.jpg +52273407231_50a6d90bce_k.jpg 52273668119_6f6b12e472_k.jpg 52281972878_1efc0e0f77_o.png 52439703339_6668e4e7b6_h.jpg +""" +i = 1 +target = (1920, 1080) +band = Image.new("RGB",(1920, 2)) +y_split = 730 +for name in liste.split(): + + im = Image.open(name) + #be sure that the width is 1920px + size = (1920, int(im.height * 1920 / im.width)) + im = im.resize(size) + im = ImageOps.fit(im, target, centering=(0.5,1)) + # select the upper part + box = (0, 0, 1920, y_split) + # define the bottom part + bottom_box = (0, y_split + 2, 1920, 1080) + bottom_size = (1920, 1078-y_split) + # mirrot the upper part + bottom = ImageOps.flip(im.crop(box)) + # keep only a part of the mirrored part + bottom = ImageOps.fit(bottom, bottom_size, centering=(0.5,0)) + # fade to black from top to bottom of the mirrored part + pixels = bottom.load() + gamma = 1.4 + for y in range(bottom.height): + darker = pow((bottom.height -y)/bottom.height, gamma) + for x in range(bottom.width): + pixels[x,y] = (int(pixels[x, y][0] * darker), int(pixels[x, y][1] * darker), int(pixels[x, y][2] * darker),) + # join the 2 parts + im.paste(bottom, bottom_box) + # add the band + im.paste(band, (0, y_split)) + # export the result + with open(f"Screensaver-{i:02}.jpg",'w') as new_im: + im.save(new_im) + i += 1 + + |