Missing alt property on the image

Created on 24 February 2023, over 1 year ago
Updated 6 December 2023, 12 months ago

Problem/Motivation

The generated image is missing an alt tag. SEO tools complain about that and it's bad for blind people.

Steps to reproduce

Use pdfpreview and check the output

Proposed resolution

The alt text should be generated from the filename + "Thumbnail" or even better from a formatter setting which allows to input tokens.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany Anybody Porta Westfalica

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

Comments & Activities

  • Issue created by @Anybody
  • πŸ‡©πŸ‡ͺGermany Anybody Porta Westfalica
  • πŸ‡ΊπŸ‡ΈUnited States dalemoore

    Co-signed on this. We can't use this module without being able to provide alt text for the preview image for accessibility due to federal requirements. Looking into whether it can be added through custom code or whether to use a different module right now, but other than that, this module is great.

  • πŸ‡¦πŸ‡ΊAustralia mstrelan

    Happy to review any patches or MRs. If you're looking for a custom solution you can call \Drupal::service('pdfpreview.generator')->getPdfPreview($file); which you can handle however you like.

  • is there any progress in this?
    needing title and alt tag as well

Production build 0.71.5 2024