imgsort/README.md

63 lines
2.5 KiB
Markdown
Raw Permalink Normal View History

2021-09-23 15:18:28 +02:00
# imgsort - Image Sorter
2023-10-22 23:27:39 +02:00
This is a python program for Linux that lets you easily sort images from one directory into other directories.
It lets you go through a folder of images and simply move them using a single key press, which you define at program startup.
This is very useful when you want to sort your phone's camera folder or messenger media folders.
For example, you could quickly go through your WhatsApp media (after copying it to your pc) and sort the images into different directories like *Selfies*, *Landscapes*, *Friends* etc.
2021-09-23 15:09:36 +02:00
2023-11-01 01:21:21 +01:00
<img src="imgsort-example.jpg" width="70%" style="margin-left: auto; margin-right: auto;" />
2023-11-01 01:17:09 +01:00
2021-09-23 15:09:36 +02:00
## Usage
1. Navigate to the folder containing the images and run "imgsort".
```shell
cd ~/Pictures
imgsort
```
2. When you run it the first time, you will be prompted to create a new config. That means you need to assign keyboard keys to directories in your filesystem.
2021-12-05 22:44:47 +01:00
For example, you could use:
2022-12-16 05:36:10 +01:00
- `f` = `~/Pictures/Family`
- `v` = `~/Pictures/Vacation_2019`
2023-12-01 21:34:12 +01:00
- `O` = `~/Pictures/Other`
2021-12-05 22:44:47 +01:00
2023-12-01 21:34:12 +01:00
Note that `s`, `u`, `o` and `q` are reserved for *skip*, *undo*, *open* and *quit*, but you can use `S`, `U` and `Q` instead.
2023-10-23 00:44:39 +02:00
3. Save the config if you might want to use it again. The config file will be stored in `$XDG_CONFIG_DIR` or `~/.config/imgsort`.
2021-09-23 15:09:36 +02:00
4. Enjoy the slideshow!
## Installation
2021-09-23 15:18:28 +02:00
Clone this repository and install it using python-pip.
2023-10-22 23:27:39 +02:00
This project depends on ueberzug to display the images in the terminal.
The original ueberzug is no longer maintained, but there is [a continuation](https://github.com/ueber-devel/ueberzug/) as well as a [new C++ alternative](https://github.com/jstkdng/ueberzugpp) available.
2023-12-16 00:33:41 +01:00
You need to manually install one of them and then choose the corresponding `imgsort` branch.
I would recommend the `ueberzugpp` as it also works on Wayland.
2023-10-22 23:27:39 +02:00
For the version supporting the original **ueberzug**:
2021-09-23 15:18:28 +02:00
```shell
git clone https://github.com/MatthiasQuintern/imgsort.git
cd imgsort
python3 -m pip install .
```
2023-10-22 23:27:39 +02:00
For the version supporting the new **ueberzug++**:
```shell
git clone --branch ueberzugpp https://github.com/MatthiasQuintern/imgsort.git
cd imgsort
python3 -m pip install .
```
2021-12-05 22:44:47 +01:00
## Changelog
2023-10-22 23:27:39 +02:00
### 1.2
2023-12-16 00:24:27 +01:00
#### 1.2.1
- Refactored configuration management
#### 1.2.0
2023-10-22 23:27:39 +02:00
- Support ueberzugpp
- Added option to open file with `xdg-open`
- Use pyproject.toml for installation
2021-12-05 22:44:47 +01:00
### 1.1
- Terminal does not break anymore when program exits
- Todo-Images are now sorted by filename
### 1.0
2022-12-16 05:36:10 +01:00
- Initial Release
2021-12-05 22:44:47 +01:00
2023-10-31 17:56:27 +01:00
## Important Notice:
2021-12-05 22:44:47 +01:00
This software comes with no warranty!