Skip to content

Commit afc69d1

Browse files
author
Kieran BW
committed
Add New functions to imageEdit.py
1 parent 07a01aa commit afc69d1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+609
-351
lines changed

CHANGELOG.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Changelog
2+
All major and minor version changes will be documented in this file. Details of
3+
patch-level version changes can be found in [commit messages](../../commits/master).
4+
5+
## Add New functions to imageEdit.py - 2020/01/13
6+
```python
7+
logPrint(printText, printType="standard"):
8+
reduceColours(image, mode="optimised"):
9+
cropCentre(image, width, height):
10+
uncrop(image, padding):
11+
getPixelDimens(image, dimens):
12+
```
13+
14+
## Add Changelog (overdue) - 2020/01/13
15+
- Add a changelog to the project that is rather overdue
16+
- Lib consists of the following files:
17+
- FiraCode-Light.ttf
18+
- imageEdit.py
19+
- imageTrace.py
20+
- imagetracer.html
21+
- imagetracer.js
22+
- imageTracerJs.py

README.md

Lines changed: 36 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,26 @@
11

22
<p float="left">
3-
<img src="https://img.shields.io/github/languages/top/fredhappyface/Python.ImageRound.svg?style=flat-square" alt="Github top language">
4-
<img src="https://img.shields.io/codacy/grade/caca6f53db3a44f08b7cbdb25284e784.svg?style=flat-square" alt="Codacy grade">
5-
<img src="https://img.shields.io/codacy/coverage/caca6f53db3a44f08b7cbdb25284e784.svg?style=flat-square" alt="Codacy coverage">
6-
<img src="https://img.shields.io/github/repo-size/fredhappyface/Python.ImageRound.svg?style=flat-square" alt="Repository size">
7-
<img src="https://img.shields.io/github/issues/fredhappyface/Python.ImageRound.svg?style=flat-square" alt="Issues">
8-
<img src="https://img.shields.io/github/license/fredhappyface/Python.ImageRound.svg?style=flat-square" alt="License">
9-
<img src="https://img.shields.io/github/commit-activity/m/fredhappyface/Python.ImageRound.svg?style=flat-square" alt="Commit activity">
10-
<img src="https://img.shields.io/github/last-commit/fredhappyface/Python.ImageRound.svg?style=flat-square" alt="Last commit">
3+
<a href="../../"><img src="https://img.shields.io/github/languages/top/FredHappyface/Python.ImageRound.svg?style=flat-square" alt="Github top language"></a>
4+
<a href="https://www.codacy.com/manual/FredHappyface/Python.ImageRound"><img src="https://img.shields.io/codacy/grade/caca6f53db3a44f08b7cbdb25284e784.svg?style=flat-square" alt="Codacy grade"></a>
5+
<a href="https://www.codacy.com/manual/FredHappyface/Python.ImageRound"><img src="https://img.shields.io/codacy/coverage/caca6f53db3a44f08b7cbdb25284e784.svg?style=flat-square" alt="Codacy coverage"></a>
6+
<a href="../../"><img src="https://img.shields.io/github/repo-size/FredHappyface/Python.ImageRound.svg?style=flat-square" alt="Repository size"></a>
7+
<a href="../../issues"><img src="https://img.shields.io/github/issues/FredHappyface/Python.ImageRound.svg?style=flat-square" alt="Issues"></a>
8+
<a href="/LICENSE.md"><img src="https://img.shields.io/github/license/FredHappyface/Python.ImageRound.svg?style=flat-square" alt="License"></a>
9+
<a href="../../commits/master"><img src="https://img.shields.io/github/commit-activity/m/FredHappyface/Python.ImageRound.svg?style=flat-square" alt="Commit activity"></a>
10+
<a href="../../commits/master"><img src="https://img.shields.io/github/last-commit/FredHappyface/Python.ImageRound.svg?style=flat-square" alt="Last commit"></a>
1111
</p>
1212

13-
1413
# Python.ImageRound
1514

1615

1716
<img src="readme-assets/icons/name.png" alt="Project Icon" width="750">
1817

19-
No longer just rounds the corners of an image. Create various icon masks
20-
and shading effects with the imageEdit library. Three example files: round.py,
21-
makeProjIcons.py and makePWAImages.py. Includes two tracing components:
22-
imageTrace.py and imageTracerJs.py. imageTracerJs.py uses JS and is much faster.
23-
Takes a few seconds and has no cap. (imageTrace.py is capped to 180x180px to
24-
prevent hanging on test machine. And note that it will take 1-2 mins per trace
18+
No longer just rounds the corners of an image. Create various icon masks
19+
and shading effects with the imageEdit library. Three example files: round.py,
20+
makeProjIcons.py and makePWAImages.py. Includes two tracing components:
21+
imageTrace.py and imageTracerJs.py. imageTracerJs.py uses JS and is much faster.
22+
Takes a few seconds and has no cap. (imageTrace.py is capped to 180x180px to
23+
prevent hanging on test machine. And note that it will take 1-2 mins per trace
2524
at that resolution)
2625

2726
## Comparison to similar solutions
@@ -66,6 +65,28 @@ example I am using lightfox.png
6665
<img src="readme-assets/examples/squircle-256.png" alt="LightFox" width="52">
6766

6867

68+
## Language information
69+
### Built for
70+
This program has been written for Python 3 and has been tested with
71+
Python version 3.8.0 <https://www.python.org/downloads/release/python-380/>.
72+
73+
Install with chocolatey
74+
```powershell
75+
choco install python
76+
```
77+
### Other versions
78+
To install Python, go to <https://www.python.org/> and download the latest
79+
version.
80+
## How to run
81+
1. Open the .py file in vscode
82+
2. Ensure a python 3.8 interpreter is selected (Ctrl+Shift+P > Python:Select Interpreter > Python 3.8)
83+
3. Run by pressing Ctrl+F5 (if you are prompted to install any modules, accept)
84+
85+
86+
## Changelog
87+
See the [CHANGELOG](/CHANGELOG.md) for more information.
88+
89+
6990
## Download
7091
### Clone
7192
#### Using The Command Line
@@ -94,18 +115,6 @@ More information can be found at
94115
2. Extract the zip archive
95116
3. Copy/ move to the desired location
96117

97-
## Language information
98-
### Built for
99-
This program has been written for Python 3 and has been tested with
100-
Python version 3.8.0 <https://www.python.org/downloads/release/python-380/>.
101-
### Other versions
102-
To install Python, go to <https://www.python.org/> and download the latest
103-
version.
104-
## How to run
105-
1. Open the .py file in vscode
106-
2. Ensure a python 3.8 interpreter is selected (Ctrl+Shift+P > Python:Select Interpreter > Python 3.8)
107-
3. Run by pressing Ctrl+F5 (if you are prompted to install any modules, accept)
108-
109118
## Licence
110119
MIT License
111120
Copyright (c) fredhappyface

0 commit comments

Comments
 (0)