Skip to content

Commit

Permalink
release: 0.1.7
Browse files Browse the repository at this point in the history
  • Loading branch information
TheJoin95 committed Jul 26, 2023
1 parent 71243b3 commit f010982
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion index.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,17 @@
# go_nord.set_default_nord_palette()

image = go_nord.open_image("images/bn.jpg")
go_nord.convert_image(image, save_path='images/test.avg.jpg')
# go_nord.convert_image(image, save_path='images/test.avg.jpg')

# E.g. Resized img no Avg algorithm and less colors
go_nord.disable_avg_algorithm()
go_nord.reset_palette()
go_nord.add_file_to_palette(NordPaletteFile.POLAR_NIGHT)
go_nord.add_file_to_palette(NordPaletteFile.SNOW_STORM)

output_path = go_nord.convert_video('/Users/thejoin/Downloads/SampleVideo_720x480.mp4', 'custom_palette', save_path='/tmp')
print(output_path)

image = go_nord.open_image("images/test.jpg")
resized_img = go_nord.resize_image(image)
go_nord.convert_image(resized_img, save_path='images/test.resized.jpg')
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

setup(
name="image-go-nord",
version="0.1.6",
version="0.1.7",
description="A tool for converting RGB image to Nordtheme palette",
long_description=README,
long_description_content_type="text/markdown",
Expand Down

0 comments on commit f010982

Please sign in to comment.