Skip to content

Commit 663d242

Browse files
author
dn0z
committed
Added an icon, a README, build.bat and fixed setup.py
1 parent 830a58d commit 663d242

File tree

6 files changed

+59
-1
lines changed

6 files changed

+59
-1
lines changed

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2016 Dinos
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Batch Image Resize
2+
3+
### What is this?
4+
This is a simple and open source tool written in
5+
[Python](https://www.python.org/) to resize multiple images at once.
6+
7+
### Usage
8+
Get the latest [release](https://github.com/dn0z/Batch-Image-Resize/releases)
9+
and run `bir.exe`. Click **Browse** and select the folder containing
10+
the images you want to resize. Then enter the width, the height and
11+
click on **Export**.
12+
13+
You can also select whether you want your images to be saved as a PNG
14+
or a JPEG file or you can check the **Overwrite original** checkbox
15+
to overwrite the original files.
16+
17+
### How to build it?
18+
1. Make sure you have installed [Python 3](https://www.python.org/downloads/)
19+
2. Get these:
20+
- [Pillow](https://pypi.python.org/pypi/Pillow/3.4.2)
21+
- [enum34](https://pypi.python.org/pypi/enum34)
22+
- [py2exe](https://pypi.python.org/pypi/py2exe/)
23+
- [setuptools](https://pypi.python.org/pypi/setuptools)
24+
3. Run `build.bat`
25+
26+
### Version info
27+
I've tested this only on Windows 10. If you don't use Windows and you're
28+
experienced with Python, it should be trivial to modify it to support
29+
other operating systems (OS X, Linux).
30+
31+
### License
32+
The MIT License, check the `LICENSE` file.

bir.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ def display_progress_window(self):
135135
self.progress_window = Toplevel(self)
136136
self.progress_window.title("Exporting")
137137
self.progress_window.geometry("300x100")
138+
self.progress_window.iconbitmap("icon.ico")
138139

139140
Label(self.progress_window,
140141
text="Exporting images",
@@ -159,6 +160,7 @@ def display_about(self):
159160
self.about_window = Toplevel(self)
160161
self.about_window.title("About")
161162
self.about_window.geometry("400x300")
163+
self.about_window.iconbitmap("icon.ico")
162164

163165
# Header
164166
header_imagetk = imgedit.HelpingMethods.get_imagetk("about_header.png")
@@ -415,6 +417,7 @@ def main():
415417

416418
root.title("Batch Image Resize")
417419
root.geometry("360x210")
420+
root.iconbitmap("icon.ico")
418421
root.resizable(0, 0)
419422

420423
style = ttk.Style()

build.bat

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
@echo off
2+
python setup.py py2exe

icon.ico

102 KB
Binary file not shown.

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
setup(
55
windows=[
66
{
7-
"script": "LoL Skype DnD.py",
7+
"script": "Batch Image Resize",
88
"icon_resources": [(1, "icon.ico")]
99
}
1010
]

0 commit comments

Comments
 (0)