New URI option does not support image styles

Created on 7 October 2013, about 11 years ago
Updated 26 April 2023, over 1 year ago

It appears the newly added support for URI (https://drupal.org/node/2076937) does not work correctly with image styles. When selecting an image style and choosing any of the other available URL types, the path provided points to the image file within the corresponding style directory. However, if selecting URI for the URL type, the path is based on the original image file, not the file relating to the selected image style.

For example:
Absolute file path = /sites/default/files/styles/thumbnail/public/logos/my_logo.png
URI path = public://logos/my_logo.png

Notice "styles/thumbnail/public/" is missing from the URI path.

πŸ› Bug report
Status

Closed: outdated

Version

1.4

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States Christian DeLoach

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