Created
February 14, 2023 22:36
-
-
Save hamaguchi-amago/2ca4c80cefd5bd761e644bfb99b44c5a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from PIL import Image, ImageFilter | |
# Blur Filter | |
im = Image.open("cat.jpg") | |
im.filter(ImageFilter.BLUR) | |
im.save("cat-blur.jpg") | |
# Edge Enhance Filter | |
im = Image.open("cat.jpg") | |
im.filter(ImageFilter.EDGE_ENHANCE) | |
im.save("cat-edge.jpg") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ブログのサンプルとして作成しました。
【Python】Pillowライブラリを使って簡単な画像処理を試す
https://neko-py.com/python-image