MCPcopy Create free account
hub / github.com/LCBOWER33/StegoScan / convert_image_to_bin

Function convert_image_to_bin

StegoScan.py:653–659  ·  view source on GitHub ↗
(image_path, out_file)

Source from the content-addressed store, hash-verified

651
652
653def convert_image_to_bin(image_path, out_file):
654 # Open image
655 with Image.open(image_path) as img:
656 with open(out_file, 'wb') as bin_file:
657 # Convert image to bytes and write to .bin file
658 img_bytes = img.tobytes()
659 bin_file.write(img_bytes)
660
661
662def process_images(output_dir):

Callers 1

process_imagesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected