Problem/Motivation

Description for "File" field:

  • For uploading files
  • Can be configured with options such as allowed file extensions and maximum upload size

Description for "Image" field:

  • For uploading images
  • Allows a user to upload an image with configurable extensions, image dimensions, upload size
    Can be configured with options such as allowed file extensions, maximum upload size and image dimensions minimums/maximums

Description for "Svg Image" field:

This field stores the ID of an image file as an integer value.

Steps to reproduce

  • Install Drupal with "Standard" install profile.
  • Enable Svg Image Field module.
  • Click "File upload" to add an Svg Image field to the Article content type at URL /admin/structure/types/manage/article/fields/add-field
  • Compare types and description text

Proposed resolution

  • Use 'Vector image' consistently everywhere, instead of 'Svg Image' in some places, and 'Vector Image' in others. Lowercase 'image' for consistency with multi-word field name strings in core.
  • Add an appropriate field type description.
    • For uploading scalable vector graphics (SVG) images.
    • Can be configured with display options such as inline rendering, SVG sanitization, apply dimensions, and more.

Remaining tasks

User interface changes

API changes

Data model changes

CommentFileSizeAuthor
#3 3501883-after.png338.28 KBjwilson3
#3 3501883-before.png413.8 KBjwilson3
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

jwilson3 created an issue. See original summary.

jwilson3’s picture

Issue summary: View changes
Status: Active » Needs review
StatusFileSize
new413.8 KB
new338.28 KB

Before:

After:

jwilson3’s picture

Issue summary: View changes
jwilson3’s picture

Issue summary: View changes

mandclu made their first commit to this issue’s fork.

  • mandclu committed dd086f0d on 2.3.x authored by jwilson3
    Issue #3501883 by jwilson3: Improve SVG Image field type name and...
jwilson3’s picture

Status: Needs review » Fixed

Thanks for the review and merge. This is included in release 2.3.4

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.