Bug 510921 - Dimensions for PNG images not shown if they are a screenshot (they are probably only taken from Exif)
Summary: Dimensions for PNG images not shown if they are a screenshot (they are probab...
Status: RESOLVED INTENTIONAL
Alias: None
Product: dolphin
Classification: Applications
Component: view-engine: tooltip (other bugs)
Version First Reported In: 25.04.3
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-10-22 15:09 UTC by tomashnyk
Modified: 2025-10-23 14:33 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
Sad state of exif-less tooltip (215.19 KB, image/png)
2025-10-22 15:09 UTC, tomashnyk
Details
A lot of informatino from exif, including dimensions (688.65 KB, image/png)
2025-10-22 15:10 UTC, tomashnyk
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tomashnyk 2025-10-22 15:09:48 UTC
Created attachment 186008 [details]
Sad state of exif-less tooltip

I noticed the tooltip for screenshot does not show their dimensions. Dimensions are shown for peg files from a camera, presumably they are takeng from exif. However, dimensions are known even when there is no exif data and are quite useful information. It would be great if they were displayed no matter if there is exif data.
Comment 1 tomashnyk 2025-10-22 15:10:22 UTC
Created attachment 186009 [details]
A lot of informatino from exif, including dimensions
Comment 2 Méven 2025-10-23 14:23:28 UTC
PNG can have exif data.

Extracting data without metadata from png, would be very costly IO/wise.
And exif data in png is very uncommon.
Spectacle for instance adds them.

You can use the command `exiftool my-file.png` to check its metadata.

On a local png I get:
```
iftool alina.png 
ExifTool Version Number         : 13.36
File Name                       : alina.png
Directory                       : .
File Size                       : 110 kB
File Modification Date/Time     : 2025:08:27 11:30:35+02:00
File Access Date/Time           : 2025:10:23 12:28:36+02:00
File Inode Change Date/Time     : 2025:08:27 11:30:39+02:00
File Permissions                : -rw-r--r--
File Type                       : PNG
File Type Extension             : png
MIME Type                       : image/png
Image Width                     : 250
Image Height                    : 250
Bit Depth                       : 8
Color Type                      : RGB
Compression                     : Deflate/Inflate
Filter                          : Adaptive
Interlace                       : Noninterlaced
Image Size                      : 250x250
Megapixels                      : 0.062
```

This is more of a potential kfilemetadata feature request.
Comment 3 tomashnyk 2025-10-23 14:33:47 UTC
But I get:
======== ./Screenshot_20251022_161439.png
ExifTool Version Number         : 13.10
File Name                       : Screenshot_20251022_161439.png
Directory                       : .
File Size                       : 474 kB
File Modification Date/Time     : 2025:10:22 16:14:40+02:00
File Access Date/Time           : 2025:10:23 16:27:22+02:00
File Inode Change Date/Time     : 2025:10:23 16:27:22+02:00
File Permissions                : -rw-r--r--
File Type                       : PNG
File Type Extension             : png
MIME Type                       : image/png
Image Width                     : 1846
Image Height                    : 1011
Bit Depth                       : 8
Color Type                      : RGB with Alpha
Compression                     : Deflate/Inflate
Filter                          : Adaptive
Interlace                       : Noninterlaced
Pixels Per Unit X               : 3780
Pixels Per Unit Y               : 3780
Pixel Units                     : meters
Logical X                       : 4895.6
Logical Y                       : 448.4
Sub Geometry List               : 
Image Size                      : 1846x1011
Megapixels                      : 1.9

Does exiftool extract the dimensions from the file itself?