Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
dibaotian committed Jan 22, 2021
1 parent 031db71 commit 6f64ff9
Show file tree
Hide file tree
Showing 102 changed files with 39 additions and 0 deletions.
38 changes: 38 additions & 0 deletions create_deploy_pic_crc.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#!/usr/bin/python
# -*- coding: UTF-8 -*-

from zlib import crc32
import os
import sys

def getCrc32(filename):
with open(filename, 'rb') as f:
return crc32(f.read())&0xffffffff

def putCrc32(file_path, msg):
f=open(file_path,"w")
f.write(msg)
f.close

if __name__ == '__main__':
if len(sys.argv) < 2:
print ("Usage: python create_deploy_pic_crc.py <input_file>")
exit(-1)

if (False == os.path.exists(sys.argv[1])):
print ("Error: input file '%s' not exist" % sys.argv[1])
exit(-1)

input_file = sys.argv[1]

checksum=getCrc32(input_file)

output_file = input_file.replace('.jpg','_crc32.dat')
print (output_file)

putCrc32(output_file, hex(checksum))

print ("Crc:",(hex(checksum)))

exit(0)

Binary file added testbench/10_1080x1080_90.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added testbench/118_1080x1080_90.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added testbench/1280x960_38.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added testbench/1280x960_39.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added testbench/1280x960_40.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added testbench/1280x960_41.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added testbench/1280x960_43.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added testbench/1280x960_45.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added testbench/1280x960_46.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added testbench/1280x960_47.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added testbench/1280x960_48.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added testbench/1280x960_49.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added testbench/154_1080x1080_90.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added testbench/190_1080x1080_90.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added testbench/1920x1080_1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added testbench/1920x1080_10.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added testbench/1920x1080_2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added testbench/1920x1080_3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added testbench/1920x1080_4.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added testbench/1920x1080_5.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added testbench/1920x1080_6.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added testbench/1920x1080_7.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added testbench/1920x1080_8.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added testbench/1920x1080_9.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added testbench/207_800x600_75.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added testbench/2160x1080_34.jpg
Binary file added testbench/2160x1080_35.jpg
Binary file added testbench/2160x1080_36.jpg
Binary file added testbench/2160x1080_37.jpg
Binary file added testbench/2160x1080_38.jpg
Binary file added testbench/2160x1080_39.jpg
Binary file added testbench/2160x1080_40.jpg
Binary file added testbench/2160x1080_42.jpg
Binary file added testbench/2160x1080_43.jpg
Binary file added testbench/2160x1080_44.jpg
Binary file added testbench/226_1080x1080_90.jpg
Binary file added testbench/243_800x600_75.jpg
Binary file added testbench/262_1080x1080_90.jpg
Binary file added testbench/279_800x600_75.jpg
Binary file added testbench/298_1080x1080_90.jpg
Binary file added testbench/313_400x300_75.jpg
Binary file added testbench/315_800x600_75.jpg
Binary file added testbench/334_1080x1080_90.jpg
Binary file added testbench/349_400x300_75.jpg
Binary file added testbench/351_800x600_75.jpg
Binary file added testbench/385_400x300_75.jpg
Binary file added testbench/387_800x600_75.jpg
Binary file added testbench/421_400x300_75.jpg
Binary file added testbench/423_800x600_75.jpg
Binary file added testbench/457_400x300_75.jpg
Binary file added testbench/459_800x600_75.jpg
Binary file added testbench/46_1080x1080_90.jpg
Binary file added testbench/493_400x300_75.jpg
Binary file added testbench/495_800x600_75.jpg
Binary file added testbench/529_400x300_75.jpg
Binary file added testbench/531_800x600_75.jpg
Binary file added testbench/565_400x300_75.jpg
Binary file added testbench/601_400x300_75.jpg
Binary file added testbench/604_1080x1080_75.jpg
Binary file added testbench/637_400x300_75.jpg
Binary file added testbench/640_1080x1080_75.jpg
Binary file added testbench/676_1080x1080_75.jpg
Binary file added testbench/712_1080x1080_75.jpg
Binary file added testbench/748_1080x1080_75.jpg
Binary file added testbench/784_1080x1080_75.jpg
Binary file added testbench/800p_1.jpg
Binary file added testbench/800p_10.jpg
1 change: 1 addition & 0 deletions testbench/800p_1_crc32.dat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0xac07225d
Binary file added testbench/800p_2.jpg
Binary file added testbench/800p_3.jpg
Binary file added testbench/800p_4.jpg
Binary file added testbench/800p_5.jpg
Binary file added testbench/800p_6.jpg
Binary file added testbench/800p_7.jpg
Binary file added testbench/800p_8.jpg
Binary file added testbench/800p_9.jpg
Binary file added testbench/820_1080x1080_75.jpg
Binary file added testbench/82_1080x1080_90.jpg
Binary file added testbench/856_1080x1080_75.jpg
Binary file added testbench/892_1080x1080_75.jpg
Binary file added testbench/928_1080x1080_75.jpg
Binary file added testbench/IMG_20180815_111419.jpg
Binary file added testbench/IMG_20180815_190538.jpg
Binary file added testbench/IMG_20180815_213203.jpg
Binary file added testbench/IMG_20180819_130428.jpg
Binary file added testbench/IMG_20180819_130448.jpg
Binary file added testbench/IMG_20180822_201431.jpg
Binary file added testbench/IMG_20180822_201443.jpg
Binary file added testbench/IMG_20180825_124415.jpg
Binary file added testbench/IMG_20180825_125417.jpg
Binary file added testbench/IMG_20180825_125740.jpg
Binary file added testbench/detail_01.jpg
Binary file added testbench/detail_02.jpg
Binary file added testbench/detail_03.jpg
Binary file added testbench/detail_04.jpg
Binary file added testbench/detail_05.jpg
Binary file added testbench/detail_06.jpg
Binary file added testbench/detail_07.jpg
Binary file added testbench/detail_08.jpg
Binary file added testbench/detail_09.jpg
Binary file added testbench/detail_10.jpg

0 comments on commit 6f64ff9

Please sign in to comment.