File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# Image-Reprocessor
22 Reprocesses images or just basically clears any traces if there is, anonymity it is.
3+
4+ ### The python code uses those modules listed here:
5+ - sys, uses argv to get path.
6+ - os, listdir to loop through inputs folder.
7+ - PIL, uses Image to take the image's data and processes the processed image data from numpy.
8+ - numpy, ndarray and uint8 for cleaning the image's data taken from PIL.
9+
10+ #### Speed?
11+ - Processed 2 4500x2500 images in less than a second.
12+ #### Transparent images?
13+ - Yessir (Check line 14).
14+ #### There's a lot of data in each image.
15+ - literally a 16.4mb image has been reprocessed into a about 15.4mb image, I was so surprised yet scared.
16+ - The amount of traces is tremendous, we need more knowledge about that.
17+
18+ #### Example:
19+ - ![ Example 1.2] (https://github.com/Developer-Incoming/Image-Reprocessor/blob/main/outputs/test9 Data.png?raw=true)
20+ - Example 1.1 showing the original file's bytes, which are 149 bytes.
21+ - ![ Example 1.2] (https://github.com/Developer-Incoming/Image-Reprocessor/blob/main/outputs/Processed test9 Data.png?raw=true)
22+ - Example 1.2 showing the reprocessed file that lost 51 bytes out of 149 bytes of its original bytes, crazy isn't?
Original file line number Diff line number Diff line change 11from sys import argv
22from os import listdir
3- import colorama
4- colorama .init ()
53
64from PIL import Image
75from numpy import ndarray , uint8
@@ -26,7 +24,7 @@ def reprocessImage(imagePath):
2624 | || '_ ` _ \ / _ |/ _ |/ _ \ __| | |_) / _ \ _ \| __/ _ \ / __/ _ \/ __/ __|/ _ \| __|
2725 | || | | | | | (_| | (_| | __/ | | _ < __/ |_) | | | (_) | (_| __/\__ \__ \ (_) | |
2826 |___|_| |_| |_|\__,_|\__, |\___|_| |_| \_\___| __/|_| \___/ \___\___||___/___/\___/|_|
29- |___/ |_|
27+ |___/ |_| Pro Max Plus 6G XDR OLED 8K
3028''' )
3129
3230input ("Press enter to process the folder:\n " + inputs + "\n \n and output its outputs into the folder:\n " + outputs + "\n " )
You can’t perform that action at this time.
0 commit comments