File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Compress Image
2
+
3
+ ## Description
4
+ This snippet of code will Compress the image upto a great extent without affecting quality of image.
5
+
6
+ ## Requirements
7
+
8
+ ` $ pip install Pillow `
9
+
10
+ ## Steps To Execution
11
+ - Fork this repo and navigate to ShortenLinks folder
12
+ - (optional) Add images to same directory with this ` code.py ` .
13
+ - Modify the names in ` code.py `
14
+ - Run this code.py ` $ python code.py `
15
+ - Boom !!! a new image will generate with much less size but same quality.
16
+ - Enjoy the the Image Compress Thing !!!!!
17
+
18
+ ## Code Output
19
+
20
+ ![ op2] ( https://user-images.githubusercontent.com/52918207/121647187-bf28a200-cab3-11eb-9171-a97d3b90527a.png )
21
+
22
+
23
+
24
+ | Before | After |
25
+ | :---:| :---------------------------------------------------------------------------------------------------------------------:|
26
+ | ![ 1] ( https://user-images.githubusercontent.com/52918207/121647416-0151e380-cab4-11eb-96d1-1dfd127789c6.jpg ) | ![ 1_compressed] ( https://user-images.githubusercontent.com/52918207/121647438-06af2e00-cab4-11eb-9fa5-b84787163bb2.jpg ) |
27
+ | Size : 7.3 MB | Size : 1.7 MB |
28
+
You can’t perform that action at this time.
0 commit comments