Skip to content

Instantly share code, notes, and snippets.

@hamaguchi-amago
Created February 14, 2023 22:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hamaguchi-amago/2ca4c80cefd5bd761e644bfb99b44c5a to your computer and use it in GitHub Desktop.
Save hamaguchi-amago/2ca4c80cefd5bd761e644bfb99b44c5a to your computer and use it in GitHub Desktop.
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")
@hamaguchi-amago
Copy link
Author

ブログのサンプルとして作成しました。

【Python】Pillowライブラリを使って簡単な画像処理を試す
https://neko-py.com/python-image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment