Skip to main content

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

displaye-image RAW image

  • 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, LibRawParams are 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

Calibration CameraControls LibRawParams

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


Download files

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

Source Distribution

display_image-0.1.6.tar.gz (11.3 kB view details)

Uploaded Source

Built Distribution

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

display_image-0.1.6-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

Details for the file display_image-0.1.6.tar.gz.

File metadata

  • Download URL: display_image-0.1.6.tar.gz
  • Upload date:
  • Size: 11.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for display_image-0.1.6.tar.gz
Algorithm Hash digest
SHA256 819820ff59b35630776f19c9430dad0004525014a7b4d4af39a84b691e75e644
MD5 5e602ad711a62fb01f292fd71ab7fcd7
BLAKE2b-256 50b59103baa1510ce4394e277800a0fd04e93dbfe9f17b8fd9557e09f7b71114

See more details on using hashes here.

Provenance

The following attestation bundles were made for display_image-0.1.6.tar.gz:

Publisher: wheels.yml on sygslhy/display-image

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file display_image-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: display_image-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 9.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for display_image-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 94fcb0517b227c3cdd48fca8b2973e02b6c501c4fa118a3106d9d5e711aad3eb
MD5 2ae44fcc21c1daf8abbdc103ad743105
BLAKE2b-256 2538be508b7d5189705d8fd63295ace68c54d87230c8225b89305d6c831a215c

See more details on using hashes here.

Provenance

The following attestation bundles were made for display_image-0.1.6-py3-none-any.whl:

Publisher: wheels.yml on sygslhy/display-image

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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