Problem/Motivation

Steps to reproduce

Enable stage file proxy and observe svg icons do not render.

Proposed resolution

Only check for the file existing when inline. Hope for the best otherwise? Maybe introduce a setting towards this?

Remaining tasks

User interface changes

API changes

Data model changes

Comments

Charlie ChX Negyesi created an issue. See original summary.

ghost of drupal past’s picture

Status: Active » Needs review
StatusFileSize
new1.33 KB

Note this applies to the 2.0.x branch as well.

mandclu’s picture

I'm not sure I follow the logic proposed here. With this patch, won't inline SVG images still not work with stage file proxy?

Instead of moving the file_exists check, would it make more sense to also check if stage file proxy is installed, and only trigger the error condition if not?

lamp5’s picture

Version: 8.x-1.x-dev » 2.1.x-dev
StatusFileSize
new823 bytes

  • mandclu committed b2f316c on 2.2.x
    Issue #3194759 by Charlie ChX Negyesi, lamp5: Does not work with stage...
mandclu’s picture

Version: 2.1.x-dev » 2.2.x-dev
Status: Needs review » Fixed

Thanks for the new patch. Included this in the new 2.2.x branch and will roll a new release shortly.

Status: Fixed » Closed (fixed)

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

jwilson3’s picture

Just a note here to alert folks that we're working on improving the stage_file_proxy integration for inline SVGs in a follow-up issue.

Of particular note are two commits that improve upon the feature introduced by this issue.

https://git.drupalcode.org/project/svg_image_field/-/merge_requests/7/di...

https://git.drupalcode.org/project/svg_image_field/-/merge_requests/7/di...

Explanation of the changes can be found on comment #12 #3333776-12: Add inline SVG support for stage_file_proxy.

Thanks.