Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit fa3fea8

Browse files
Update ImageCompressing.py
Added address of file
1 parent c775762 commit fa3fea8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎Image Processing/ImageCompressing.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
from PIL import Image as ig
55

66
#open the image from directory , in my case its in same directory
7-
img=ig.open("default.jpg")
7+
img=ig.open("Home/Pictures/default.jpg")# Here we have to provide complete address of image from file which contains your py file
88

99
#Apply the compressing
1010
img.save("Compressed.jpg",optimize=True,quality=30)
1111

1212

13-
print("Done!")
13+
print("Done!")

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /