diff --git a/Main.py b/Main.py index 775f0f8..7fc25b9 100644 --- a/Main.py +++ b/Main.py @@ -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") @@ -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() \ No newline at end of file +root.mainloop() diff --git a/Picture-reader.exe b/Picture-reader.exe index ba978cd..a7cc5f4 100644 Binary files a/Picture-reader.exe and b/Picture-reader.exe differ diff --git a/README.md b/README.md index ca685b5..d2813e0 100644 --- a/README.md +++ b/README.md @@ -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. \ No newline at end of file