Add ability to store the signature in a PNG file instead of Data URI in the database

Created on 22 June 2022, about 2 years ago
Updated 1 March 2023, over 1 year ago

Problem/Motivation

Unlike in Drupal 7, the D8 version of this module currently stores the signature
values as Data URI info in the database.

This could prove to be problematic given the amount of data that is stored in
the blob per signature especially on sites which generates many signatures on a
regular basis.

Steps to reproduce

View the field DB table for Signature fields.

Proposed resolution

Add an alternate "Signature File" field type which can use the same field formatter and a slightly modified widget in order to perform the same tasks, but store the data as a PNG file instead of a data blob.

This will also make it possible to migrate from Drupal 7 as the D7 version of this module stores signatures as PNG files.

Remaining tasks

Apply the provided patch.

User interface changes

N/A

API changes

Add a SignatureItemInterface class which SignatureItem implements in order to provide its current value as an interface method.

Data model changes

N/A

Feature request
Status

Fixed

Version

1.0

Component

Code

Created by

🇨🇦Canada mdolnik

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.

Production build 0.71.5 2024