implement caption and meta-information for images #119
Labels
No labels
Component: User interface
Component: Wymeditor
Help wanted
Level: Difficult
Level: Easy
Level: Moderate
Pagetype: Festival
Pagetype: Mailinglist
Pagetype: Peer reviewed article
Pagetype: Text
Privacy GDPR AVG
status: has conflicts
Status: Needs changes
Status: Needs discussion
Status: Needs review
Status: Ready to merge
Status: Waiting for response
Type: Bug
Type: Enhancement
Type: Question
Usecase: De Stadsbron
Usecase: Koppelting
Usecase: MeetjeStad
Value: Coders
Value: Security
Value: Users
Value: Visitors
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
harmen/hypha#119
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
title, attribution; store in title and longdesc attributes; display as figure with figcaption elements
autofill attribution from exif information
step 1) update WYMeditor image dialog with "attribution"
step 2) save attribution as longdesc attribute at the image
step 3) create and add figcaption element from longdesc attribute
step 4) set "cc: author (date)" as placeholder for "attribution"
step 5) read exif data to autofill "attribution"
@laurensmartina implemented this in #344, but we discovered that the
longdescattribute is supposed to contain a URL pointing to a description of the image (similar to the alt attribute, but longer). See https://www.w3.org/TR/html-longdesc/#UCnRSo using
longdeschere is not quite ideal. There does not seem to be an HTML standard attribute for attribution/copyright/license, so maybe justdata-attributionwould be better.As for displaying it, I wonder if displaying the attribution info as a caption makes sense, I'd be more inclined to show the
titletag as a caption maybe. Looking around, it seems the<small>tag (meant for the "small print" in HTML5) might be a better fit, see: https://stackoverflow.com/a/21489636/740048Additional improvements (as indirectly suggested in the Stadsbron marketing advice) would be to offer more guidance to the users about alt tags, to encourage them to enter a meaningful alt tag (probably also stop autofilling the alt tag with the filename).