Skip to content

Comments

fix: Remove separate SVG image handling#709

Open
MoritzWeber0 wants to merge 2 commits intomainfrom
fix/svg-image-handling
Open

fix: Remove separate SVG image handling#709
MoritzWeber0 wants to merge 2 commits intomainfrom
fix/svg-image-handling

Conversation

@MoritzWeber0
Copy link
Member

@MoritzWeber0 MoritzWeber0 commented Feb 23, 2026

SVGs had their own image handling, which was lacking the latest features like captions and fetch priority. This PR adds support for SVGs in the main image handling, so that we don't have to maintain two implementations. To keep the image partial clean, I moved the image-compression part into a separate partial.

As part of this PR, I also removed externally loaded images. We don't use them, can't use them without a consent layer and have no plans to add one currently.

Resolves #708

@github-actions
Copy link

Hi there! 👋

Thank you for your contribution to the FIP Guide! 🚀
We appreciate your effort in making rail staff travel information more accessible. 🚄

Checklist before merging:

  • Added a description to the Pull Request
  • Checked the License of new pictures (non-commercial use without attribution)
  • Modified content in English
  • Modified content in German
  • Modified content in French

@netlify
Copy link

netlify bot commented Feb 23, 2026

Deploy Preview for fipguide ready!

Name Link
🔨 Latest commit 2e6f4ab
🔍 Latest deploy log https://app.netlify.com/projects/fipguide/deploys/699ccbeef1877f000804bf3d
😎 Deploy Preview https://deploy-preview-709--fipguide.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Menu get's smaller with open image

2 participants