Skip to main content

GUI over the pyimgren package

Project description

Build Status

qtimgren

Description

This is a GUI around the pyimgren package. Currently it is able to rename camera images via pyimgren forth and back. Its main feature is that it allows a manual selection of the images to rename.

Of course buttons are there to allow default selections.

It is based on profiles. For qtimgren, a profile is what is required for pyimgren configuration:

  • a folder
  • a source pattern to identify camera images (typically IMG*.JPG or DSCF*.JPG)
  • a compatible with datatime.strftime pattern to build the new name from the JPEG timestamp
  • and of course a unique name

Thanks to pyimgren, it is possible to use a delta in minutes to cope with a digital camera having a wrong time.

In order to make image selection easier, thumbnails can be displayed in the main application window along with the current, future and original names. But as image computation and display are expensive tasks, the display can be turned off. Anyway, the computation is asynchronous, meaning that the application can be used as soon as the currently displayed images are available.

Installation

From PyPI

pip install qtimgren

From Github

This is the recommended way if you want to contribute or simply tweak qtimgren to your own requirements. You can get a local copy by downloading a zipfile but if you want to make changes, you should rather clone the repository to have access to all git goodies:

git clone https://github.com/s-ball/qtimgren.git

You can then install it in your main Python installation or in a venv with:

pip install -e .

or on Windows with the launcher:

py -m pip install -e .

Alternatively, you can use the setup.py script to build the unversioned files without installing anything:

python setup.py build

Special handling of version.py:

QtImgren relies on setuptools-scm to automatically extract a version number from git metadata and store it in a version.py file for later use. The requires the availability of both git (which should not be a problem when the project is downloaded from Github), and setuptools-scm. If it fails because one is not available or because git metadata is not there (if you only downloaded a zip archive from Github), the version is set to 0.0.0

For that reason, if you do not use git to download the sources, you should download a source distribution from PyPI, because the latter contains a valid version.py

pip uses the pyproject.toml file with respect to PEP-518 and PEP-517 to know that setuptools-scm is required before the build.

Basic use

Once installed, you can run the application:

qtimgren

Internationalization

The application is natively written is English, and contains a French translation of its IHM. It depends on Qt Linguist tools for generating the binary file used at run-time. The required tool lrelease exists in the Windows PySide2 distribution, but not in Linux or Mac ones. On those platforms, you need a to install the Qt development tools and ensure that they are accessible via the path.

Of course, if you install from a PyPi wheel, the compiled message files are included as a resource.

At run time, the system default language is used by default, or can be explicitly specified with the --lang option:

qtimgren --lang=fr           # forces fr language
qtimgren --lang=C            # forces native english language

Contributions

Contributions are welcome, including translations or just issues on GitHub. Problems are expected to be documented so that they can be reproduced. But I only develop this on my free time, so I cannot guarantee quick answers...

Disclaimer: beta quality

All functionalities are now implemented, and the underlying pyimgren module has been used for years. I trust it enough to handle my own photographies with it. Yet it still lacks a decent documentation, and has not been extensively tested

License

This work is licenced under a MIT Licence. See LICENSE.txt

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

qtimgren-0.4.1.tar.gz (36.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

qtimgren-0.4.1-py3-none-any.whl (33.6 kB view details)

Uploaded Python 3

File details

Details for the file qtimgren-0.4.1.tar.gz.

File metadata

  • Download URL: qtimgren-0.4.1.tar.gz
  • Upload date:
  • Size: 36.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.4

File hashes

Hashes for qtimgren-0.4.1.tar.gz
Algorithm Hash digest
SHA256 57e1268039ef53ec15482f61f8db1d1b4e4c03deb43b77507ae116850d54b764
MD5 24ad971287dfb0d04fe30b23feef8fdc
BLAKE2b-256 13b8053feb3fffcb182304ad57f98afc36a65542bdeac322080ae72951e937f0

See more details on using hashes here.

File details

Details for the file qtimgren-0.4.1-py3-none-any.whl.

File metadata

  • Download URL: qtimgren-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 33.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.4

File hashes

Hashes for qtimgren-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5865bc08b39ae7247038dae8db7b57ae6bfbda2c041ba205988ab5e6cc51570b
MD5 b07bbbc2669e7ec654a789e5957653a1
BLAKE2b-256 d863ef7b14dd332217477d010da9146dddb43a5ac5676dd49f42c2eb3cc40fd7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page