Merge pull request #7 from komeiji-satori/master

update
This commit is contained in:
Azumo 2019-01-30 01:28:18 +08:00 committed by GitHub
commit 7d784a6a44
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
44 changed files with 36 additions and 2 deletions

2
Bio-punk/.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
/*.bmp
/*.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 336 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 154 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 98 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 543 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 156 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 249 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 208 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 237 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 591 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 245 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 419 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 152 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 174 KiB

27
Bio-punk/zipPhoto.py Normal file
View File

@ -0,0 +1,27 @@
# -*- coding: utf-8 -*-
import cv2
from os import listdir
from re import match
from re import I as flag
import numpy as np
def resize_width(image, width=1200):
power = width * 1.0 / image.shape[1]
dim = (width, int(image.shape[0] * power))
resized = cv2.resize(image, dim, interpolation=cv2.INTER_AREA)
return resized
def zip_photo(filepath):
targetWidth = 1366
image = cv2.imread(filepath)
if image.shape[0] > targetWidth:
image = resize_width(image=image, width = targetWidth)
cv2.imwrite("{}.jpg".format(filepath), image)
dirpath = "."
for filename in listdir(dirpath):
ans = match("^(.*)[.]((png)|(bmp)|(jpg)|(jpeg))$", filename, flag)
if ans is not None:
print (filename)
zip_photo("{}/{}".format(dirpath, filename))

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 423 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 363 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 442 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 681 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 767 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 661 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 649 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 730 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 519 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 376 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 161 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1012 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 MiB

View File

@ -2,6 +2,7 @@
### Dress - A Study and Practice project of git.
[![Contributors](https://img.shields.io/github/contributors/komeiji-satori/Dress.svg)](https://github.com/komeiji-satori/Dress/graphs/contributors)
[![Build Status](https://www.travis-ci.org/komeiji-satori/Dress.svg?branch=master)](https://www.travis-ci.org/komeiji-satori/Dress)
[![License](https://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png)](http://creativecommons.org/licenses/by-nc-sa/4.0/)

Binary file not shown.

After

Width:  |  Height:  |  Size: 100 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 434 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 413 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 478 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 458 KiB

BIN
njlyf2011/IMG_9198.JPG Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.5 MiB

BIN
ycwei982/2019_chino_0.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

View File

@ -1,3 +1,5 @@
# ycwei982 (智弦正)
[webpage](https://ycwei982.com)
I'm such a boring person because no reason. Check my [Twitter](https://twitter.com/ycwei982) for more boring things xD

View File

@ -1,2 +1,4 @@
禁止任何形式的修改、转载。
https://weibo.com/5878470349
<a rel="license" href="http://creativecommons.org/licenses/by-nc-nd/4.0/"><img alt="知识共享许可协议" style="border-width:0" src="https://i.creativecommons.org/l/by-nc-nd/4.0/88x31.png" /></a><br /><span xmlns:dct="http://purl.org/dc/terms/" href="http://purl.org/dc/dcmitype/StillImage" rel="dct:type">作品</span><a xmlns:cc="http://creativecommons.org/ns#" href="https://github.com/komeiji-satori/Dress/tree/master/yinchao-qaq" property="cc:attributionName" rel="cc:attributionURL">yinchao-qaq</a>采用<a rel="license" href="http://creativecommons.org/licenses/by-nc-nd/4.0/">知识共享署名-非商业性使用-禁止演绎 4.0 国际许可协议</a>进行许可。