diff --git a/index.html b/index.html index 5fd371f..f94bd23 100644 --- a/index.html +++ b/index.html @@ -26,11 +26,11 @@

Demo

Welcome to the Pillow Demo!
- My name is Alex. I'm in Bethesda, MD, USA. + My name is Alex. I live in Bethesda, MD, USA.
- I am the creator of Python Pillow, a fork of the Python Imaging Library - created in 2010. + I am the creator of Python Pillow, a fork of the Python Imaging Library + created in 2010.
diff --git a/src/demo.py b/src/demo.py index ce9e53c..3273a0e 100644 --- a/src/demo.py +++ b/src/demo.py @@ -1,4 +1,4 @@ -from PIL import Image, ImageOps, ImageFilter, ImageEnhance, ImageSequence, PSDraw +from PIL import Image, ImageOps, ImageFilter, ImageEnhance, ImageSequence import code from rich.console import Console from rich.rule import Rule @@ -351,6 +351,7 @@ # =============================================================================== console.print(Rule("[bold magenta]Example #26[/bold magenta]")) import ps # noqa + print("Example #26: Saved postscript hopper!") console.print(Rule()) code.interact(local=globals(), readfunc=readfunc, banner=banner) diff --git a/src/pal.py b/src/pal.py index 82e3d2f..73a4c56 100644 --- a/src/pal.py +++ b/src/pal.py @@ -12,7 +12,7 @@ def replace_palette_with_random_colors(image_path): img = img.convert("P", palette=Image.ADAPTIVE, colors=256) # Convert to 'P' mode # Get the palette - palette = img.getpalette() + # palette = img.getpalette() # Generate random colors new_palette = [] diff --git a/src/ps.py b/src/ps.py index 37dc9e0..9142d00 100644 --- a/src/ps.py +++ b/src/ps.py @@ -50,10 +50,10 @@ ps_file.close() -#from PIL import Image, PSDraw -#import os +# from PIL import Image, PSDraw +# import os # -#with Image.open(os.path.join("img", "hopper.ppm")) as im: +# with Image.open(os.path.join("img", "hopper.ppm")) as im: # title = "hopper" # box = (1 * 72, 2 * 72, 7 * 72, 10 * 72) # in points #