mirror of https://gitlab.com/bashrc2/epicyon
Tidying
parent
02b964915b
commit
bd1f34b34b
3
media.py
3
media.py
|
|
@ -311,7 +311,6 @@ def _remove_meta_data(image_filename: str, output_filename: str,
|
||||||
"""Attempts to do this with pure python didn't work well,
|
"""Attempts to do this with pure python didn't work well,
|
||||||
so better to use a dedicated tool if one is installed
|
so better to use a dedicated tool if one is installed
|
||||||
"""
|
"""
|
||||||
copyfile(image_filename, output_filename)
|
|
||||||
if not is_a_file(output_filename):
|
if not is_a_file(output_filename):
|
||||||
print('ERROR: unable to remove metadata from ' + image_filename)
|
print('ERROR: unable to remove metadata from ' + image_filename)
|
||||||
return
|
return
|
||||||
|
|
@ -528,6 +527,8 @@ def process_meta_data(base_dir: str, nickname: str, domain: str,
|
||||||
"""Handles image metadata. This tries to spoof the metadata
|
"""Handles image metadata. This tries to spoof the metadata
|
||||||
if possible, but otherwise just removes it
|
if possible, but otherwise just removes it
|
||||||
"""
|
"""
|
||||||
|
copyfile(image_filename, output_filename)
|
||||||
|
|
||||||
# first remove the metadata
|
# first remove the metadata
|
||||||
_remove_meta_data(image_filename, output_filename, debug)
|
_remove_meta_data(image_filename, output_filename, debug)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue