Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
aclark4life committed Oct 2, 2024
1 parent 652f358 commit ba5f412
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ <h3>Demo</h3>
Welcome to the Pillow Demo!
</div>
<div>
My name is Alex. I'm in Bethesda, MD, USA.
My name is Alex. I live in Bethesda, MD, USA.
</div>
<div>
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.
<div>
</aside>
</section>
Expand Down
3 changes: 2 additions & 1 deletion src/demo.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/pal.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
Expand Down
6 changes: 3 additions & 3 deletions src/ps.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
#
Expand Down

0 comments on commit ba5f412

Please sign in to comment.