You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

display-image

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

display-image

PyQt6 Gui App to display the wide range image formats (jpg, png, tif, dng, bmp, and RAWs), with image metadata and histogram.

0.1.6
pipPyPI
Maintainers
1

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 formatReadEXIFPixel precisionPixel typeFile extensionSidecar needed
BMPx8 bitsGrayscale, RGB, RGBA.bmp
CFAx16 bitsBayer.cfa
DNGxx16 bitsBayer.dng
JPEGxx8 bitsGrayscale, RGB.jpg, .jpeg
MIPI RAWx10 bits, 12 bitsBayer.RAWMIPI, .RAWMIPI10, .RAWMIPI12x
PLAIN RAWx**.raw .plain16, *x
PNGx8 bitsGrayscale, RGB, RGBA.png
TIFFxx8 bits, 16 bitsBayer, 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 manufacturerImage format
CanonCR2
NikonNEF
SonyARW
PanasonicRW2
KodakDCR
SamsungSRW
OlympusORF
LeicaRAW
PentaxPEF

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.

Keywords

display

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts