Blackened everything
This commit is contained in:
parent
e213647217
commit
5966ce29be
57 changed files with 1938 additions and 1414 deletions
|
|
@ -15,7 +15,7 @@ def transplant(exif_src, image, new_file=None):
|
|||
if exif_src[0:2] == b"\xff\xd8":
|
||||
src_data = exif_src
|
||||
else:
|
||||
with open(exif_src, 'rb') as f:
|
||||
with open(exif_src, "rb") as f:
|
||||
src_data = f.read()
|
||||
segments = split_into_segments(src_data)
|
||||
exif = get_exif_seg(segments)
|
||||
|
|
@ -26,7 +26,7 @@ def transplant(exif_src, image, new_file=None):
|
|||
if image[0:2] == b"\xff\xd8":
|
||||
image_data = image
|
||||
else:
|
||||
with open(image, 'rb') as f:
|
||||
with open(image, "rb") as f:
|
||||
image_data = f.read()
|
||||
output_file = True
|
||||
segments = split_into_segments(image_data)
|
||||
|
|
@ -42,4 +42,4 @@ def transplant(exif_src, image, new_file=None):
|
|||
with open(image, "wb+") as f:
|
||||
f.write(new_data)
|
||||
else:
|
||||
raise ValueError("Give a 3rd argument to 'transplant' to output file")
|
||||
raise ValueError("Give a 3rd argument to 'transplant' to output file")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue