Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kinten108101/thumbnail-maker
https://github.com/kinten108101/thumbnail-maker
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/kinten108101/thumbnail-maker
- Owner: kinten108101
- License: mit
- Created: 2024-01-21T10:02:54.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-01-21T10:54:23.000Z (12 months ago)
- Last Synced: 2024-04-19T19:08:05.844Z (9 months ago)
- Language: Python
- Size: 12.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# thumbnail-maker
## Installation
pipx is recommend:
```
$ pipx install ./thumbnail-maker
Installing to existing venv 'thumbnail_maker'
installed package thumbnail_maker 0.0.1, installed using Python 3.11.6
These apps are now globally available
- thumbnail-maker
done! ✨ 🌟 ✨
```You can also use pip. However, on some Linux distributions e.g. Arch Linux, Python packages are externally managed by the distro's own package manager, so you have to create a virtual environment first:
```
$ python -m venv .my-venv
$ source ./.my-venv/bin/activate
(.my-env) $ pip install ./thumbnail-maker
Processing ./thumbnail-maker
Installing build dependencies ... done
Getting requirements to build wheel ... done
[...]
Successfully installed thumbnail_maker-0.0.1
```## Running
If this program is installed in a virtual environment (as explained above), you have to activate that environment first:
```
$ source ./.my-venv/bin/activate
(.my-venv) $
```
Otherwise, run with the `thumbnail-maker` command:
```
$ thumbnail-maker "./Music/just friends.mp3"
Thumbnail modified for file "./Music/just friends.mp3"
Original file is backed up as "./Music/just friends.mp3.bak"
```## Development
Use `scripts/install.sh` to install the package then immediately run it in a single command. You still have to provide input arguments:
```
$ sh scripts/install.sh "./Music/just friends.mp3"
Installing to existing venv 'thumbnail_maker'
installed package thumbnail_maker 0.0.1, installed using Python 3.11.6
These apps are now globally available
- thumbnail-maker
done! ✨ 🌟 ✨
Thumbnail modified for file "./Music/FulldiveDreamers1/just friends.mp3"
Original file is backed up as "./Music/FulldiveDreamers1/just friends.mp3.bak"
```