PyQt6 Gui App to display the wide range image formats (jpg, png, tif, dng, bmp, and RAWs), with image metadata and histogram.
Project description
Display Image
Display image is a Python project which provides a command display-image to visualize the image and metadata by QtPy6.
Installation
pip install display-image
Usage
display-image -i <path_to_image>
The following format extensions can be displayed by command display-image
| Image format | Read | EXIF | Pixel precision | Pixel type | File extension | Sidecar needed |
|---|---|---|---|---|---|---|
| BMP | x | 8 bits | Grayscale, RGB, RGBA | .bmp | ||
| CFA | x | 16 bits | Bayer | .cfa | ||
| DNG | x | x | 16 bits | Bayer | .dng | |
| JPEG | x | x | 8 bits | Grayscale, RGB | .jpg, .jpeg | |
| MIPI RAW | x | 10 bits, 12 bits | Bayer | .RAWMIPI, .RAWMIPI10, .RAWMIPI12 | x | |
| PLAIN RAW | x | * | * | .raw .plain16, * | x | |
| PNG | x | 8 bits | Grayscale, RGB, RGBA | .png | ||
| TIFF | x | x | 8 bits, 16 bits | Bayer, RGB | .tif, .tiff |
Read Camera manufacturer RAW image display
The RAW image formats of the following camera manufacturers are supported, user can display these camera raw files by dependency cxx-image-io versionv1.1.2.
| Camera manufacturer | Image format |
|---|---|
| Canon | CR2 |
| Nikon | NEF |
| Sony | ARW |
| Panasonic | RW2 |
| Kodak | DCR |
| Samsung | SRW |
| Olympus | ORF |
| Leica | RAW |
| Pentax | PEF |
- User can scroll mouse to zoom in/out, and at bottom it can display the zoom factor and pixel value where use clicked with mouse.
- Since 0.1.6,
CalibrationData,CameraControls,LibRawParamsare added in metadata info display, they includes some image processing params such as:- black level and white level
- color matrix
- white balances scales
- visible zone crop coordinates on camera Raw image
Image display with sidecar JSON
Some file formats need to know in advance some informations about the image. For example, the PLAIN RAW format is just a simple dump of a buffer into a file, thus it needs to know how to interpret the data.
In this case, user need to have an image sidecar JSON located next to the image file as the same name and path path_to_image.json
{
"fileInfo": {
"format": "plain",
"height": 3072,
"width": 4080
"pixelPrecision": 16,
"pixelType": "bayer_gbrg",
}
}
After image reading, the information in JSON sidecar will be shown in tab Widegt of ImageMetadata
Other image reading with sidecar examples
Click to unfold other image format sidecar examples
Packed RAW MIPI 12 bits:
sidecar json
{
"fileInfo": {
"fileFormat": "raw12",
"height": 3000,
"width": 4000,
"pixelPrecision": 12,
"pixelType": "bayer_gbrg"
}
}
Packed RAW MIPI 10 bits:
sidecar json
{
"fileInfo": {
"height": 3000,
"width": 4000,
"format": "raw10",
"pixelPrecision": 10,
"pixelType": "bayer_grbg"
}
}
License
This project is licensed under the MIT License - see the LICENSE.md file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file display_image-0.1.9.tar.gz.
File metadata
- Download URL: display_image-0.1.9.tar.gz
- Upload date:
- Size: 11.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
49cbd8d1d9ee40ec69a9aaafc8b4a9de3315fa83a6a7e8ab08402461117cd00c
|
|
| MD5 |
d24777dbdb85cbaf483725e03005ef96
|
|
| BLAKE2b-256 |
37195f452ad5456f95401ad9239d8c369c1f5d0492cef2ffe59eb05b54829070
|
Provenance
The following attestation bundles were made for display_image-0.1.9.tar.gz:
Publisher:
wheels.yml on sygslhy/display-image
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
display_image-0.1.9.tar.gz -
Subject digest:
49cbd8d1d9ee40ec69a9aaafc8b4a9de3315fa83a6a7e8ab08402461117cd00c - Sigstore transparency entry: 731779655
- Sigstore integration time:
-
Permalink:
sygslhy/display-image@21c76d0d7ec78b5ba6a37607330f0318b9430b07 -
Branch / Tag:
refs/heads/master - Owner: https://github.com/sygslhy
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
wheels.yml@21c76d0d7ec78b5ba6a37607330f0318b9430b07 -
Trigger Event:
push
-
Statement type:
File details
Details for the file display_image-0.1.9-py3-none-any.whl.
File metadata
- Download URL: display_image-0.1.9-py3-none-any.whl
- Upload date:
- Size: 9.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
55b7ed2fae514b69545b3407ef58e8d7e0ad6f3c790473ec049e3cc668c5702a
|
|
| MD5 |
d5083589da10ac54687161110441ca3b
|
|
| BLAKE2b-256 |
474fbed3d965603d9f0065e3f1c13e3fc5ddb7f2bc405beb094212487e155f14
|
Provenance
The following attestation bundles were made for display_image-0.1.9-py3-none-any.whl:
Publisher:
wheels.yml on sygslhy/display-image
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
display_image-0.1.9-py3-none-any.whl -
Subject digest:
55b7ed2fae514b69545b3407ef58e8d7e0ad6f3c790473ec049e3cc668c5702a - Sigstore transparency entry: 731779657
- Sigstore integration time:
-
Permalink:
sygslhy/display-image@21c76d0d7ec78b5ba6a37607330f0318b9430b07 -
Branch / Tag:
refs/heads/master - Owner: https://github.com/sygslhy
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
wheels.yml@21c76d0d7ec78b5ba6a37607330f0318b9430b07 -
Trigger Event:
push
-
Statement type: