Expose ImageItem width, height, alt and title as fields in Views

Created on 13 December 2022, over 1 year ago
Updated 25 February 2023, over 1 year ago

Problem/Motivation

Image fields carry some additional properties that should be exposed as fields in Views. Currently, those properties can be used for sorting and filtering but cannot be displayed.
One example use case would be to build a back office table view to show image files and allow to display their dimensions.

Proposed resolution

Expose width and height as numeric fields
Expose alt and title as standard fields

Feature request
Status

Needs work

Version

10.1

Component
Image module 

Last updated 3 days ago

Created by

🇫🇷France DuaelFr Montpellier, France

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇺🇸United States smustgrave

    Can definitely see the use case for this. Sometimes the client wants to know all the info about the files they have on the site. But can't this be access via the meta data that's set? Or is that only media objects I'm thinking of.

    Either way this will 100% need test coverage as well.

Production build 0.71.5 2024