Pcrd-Wiki
Pcrd-Wiki copied to clipboard
Reduce image size
建议把提取出来的图缩一下再扔到网站上,加快一点网站速度
Please make a research about appropriate resize ratio on different page.
For example, on unit list page, picture source size is 512x256 but real size on 1080p screen is 340x170
I will add a new ratio parameter on statics collecting function interface
def get_img(self, img_dirs, force43=False, fill_color="#fff", force=False, ratio=1.0):
and then add ratios here.