Fixed
Project:
PhotoSwipe - Responsive JavaScript Modal Image Gallery
Version:
5.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
4 Nov 2026 at 15:56 UTC
Updated:
10 Nov 2026 at 10:56 UTC
Jump to comment: Most recent
Comments
Comment #3
grevil commentedComment #4
anybodyGreat work - sadly sanitization removes links and seems to turn texts into images so they are no more searchable in the source image.
I think we could make sanitation a separate option - and for the linked source image use the output from the svg_image_field module unchanged?
I mean without our module the output would be the same nevertheless? And it's up to svg_image_field to create the correct and safe output?
We should inherit its options then?
Comment #5
grevil commentedYes great idea, this would completely change the behavior of the formatter, but iMO it is fine, we just added it recently and as it stands it simply doesn't fit as a proper svg_image_field extension.
Comment #6
grevil commentedAlright, all done! Please review!
Comment #7
grevil commentedOk now really all done, also check out https://www.drupal.org/project/photoswipe/issues/3635489.
Comment #8
anybodyVery helpful and nice improvements. Was worth it. I think it's fine to release it without a new major version. We could instead bump the minor version in the next release. svg support was added recently, should be fine.
Comment #10
grevil commentedComment #12
anybodyRegression: #3636721: Too few arguments to function Drupal\svg_image_field\Plugin\Field\FieldFormatter\SvgImageFieldFormatter::__construct(), 11 passed in /modules/contrib/photoswipe/modules/photoswipe_svg_image_field/src/Plugin/Fie