Skip to content
This repository has been archived by the owner on Apr 19, 2022. It is now read-only.

Commit

Permalink
Update 0.1.1
Browse files Browse the repository at this point in the history
Removed the duplicate line and added a pep8.
  • Loading branch information
riderius committed Oct 1, 2020
1 parent f67b798 commit 7f18ce0
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 6 deletions.
11 changes: 5 additions & 6 deletions Main.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@

imagePIL = Image.open(file_path)
(width, height) = imagePIL.size

imagePIL = Image.open(file_path)
imagePIL = imagePIL.resize((width, int(imagePIL.size[1] * (width / imagePIL.size[0]))), Image.ANTIALIAS)
imagePIL = imagePIL.resize(
(width, int(imagePIL.size[1] * (width / imagePIL.size[0]))), Image.ANTIALIAS)

root = Tk()
root.title("Picture reader")
Expand All @@ -17,8 +16,8 @@

image = ImageTk.PhotoImage(imagePIL)

canv = Canvas(root, width = width, height = height)
imageSprite = canv.create_image(width / 2, height / 2, image = image)
canv = Canvas(root, width=width, height=height)
imageSprite = canv.create_image(width / 2, height / 2, image=image)
canv.pack()

root.mainloop()
root.mainloop()
Binary file modified Picture-reader.exe
Binary file not shown.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,19 @@ Python 3.8 or higher is recommended for using this program. You need to install
> pip install -r requirements.txt
**Pillow** is the friendly PIL fork by Alex Clark and Contributors. **PIL** is the Python Imaging Library by Fredrik Lundh and Contributors.

## Compilation

Picture-reader is compiled with pyinstaller. This command is used for this.

> pyinstaller -F -i icon.ico -w -n Picture-reader main.py
You can see what these parameters mean in the [pyinstaller documentation](https://pyinstaller.readthedocs.io/en/stable/usage.html#options).

## Versioning

**Picture-reader** uses [Semantic Versioning](https://semver.org/).

## License

This project is licensed under the MIT License, see the [LICENSE](https://github.com/RIDERIUS/Picture-reader/blob/main/LICENSE) file for details.

0 comments on commit 7f18ce0

Please sign in to comment.