示例设置
from tkinter import Tk, Label
from PIL import Image, ImageTk
root = Tk()
file = '/home/master/Work/Tensorflow/Project06 - LSC_CVPPP/Data/00 - Backgrounds_org/A1/plant001.png'
image = Image.open(file)
zoom = 0.5
#multiple image zise by zoom
pixels_x, pixels_y = tuple([int(zoom * x) for x in image.size])
img = ImageTk.PhotoImage(image.resize((pixels_x, pixels_y))) # the one-liner I used in my app
label = Label(root, image=img)
label.image = img # this feels redundant but the image didn't show up without it in my app
label.pack()
root.mainloop()
要求
Client
Nginx
↙ ↘
Frontend Server Git server
Frontend server
Git server
个请求问题
curl/wget
或
GET /info/refs?service=git-upload-pack HTTP/1.1
?GET /info/refs?service=git-receive-pack HTTP/1.1
阻止传入的请求?