Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello, I have altered the form for enabling SVG for image field and then focal point breaks the preview.
Modules used:
"drupal/focal_point": "1.0-beta4",
"drupal/crop": "1.2",
"acquia/lightning": "~2.1.0", (that downloads DRUPAL 8.3.3)
Comment | File | Size | Author |
---|---|---|---|
#2 | drupal8_3_3-focal_point-fix_preview_image_after_uploaded-2885249-1.patch | 962 bytes | seemas |
Comments
Comment #2
seemas CreditAttribution: seemas at Adapt commentedHere is small fix (patch) for avoiding focal_point on svg files.
Comment #3
seemas CreditAttribution: seemas at Adapt commentedSmall note how to apply using composer:
in composer.json
in composer.patches.json
Comment #4
kiwimind CreditAttribution: kiwimind at Investis Digital commentedComment #6
bleen CreditAttribution: bleen at NBCUniversal commentedwouldnt it be safer for this to be a positive check rather then negative? If mimetype == jpg, gif, bmp, webp, png ....
thoughts?
Comment #7
AnybodyDuplicate of #3122722: Allow SVG uploads in widget (svg_image compatibility)