Giter Club home page Giter Club logo

Comments (3)

cyrilwanner avatar cyrilwanner commented on May 19, 2024

Hi @tizzle
It should already be the case, that SVG elements don't get base64 encoded when used as a sprite.
I just tried your image (just decoded the base64 string) and also other smaller SVG elements in an empty project with the default config and I didn't get this error.
Do you overwrite a default config or maybe have other plugins or loaders which could handle SVG images?
If you don't have something confidential in your next.config.js, it would maybe help if you can post it here. Thank you!

from next-optimized-images.

tizzle avatar tizzle commented on May 19, 2024

Hey @cyrilwanner,

after some investigation i found i was a bit trigger-happy with this bug report. It turns out that i updated next-optimized-images and next-fonts as well. As it turned out next-fonts added the possibility to use SVG fonts now, which breaks next-optimized-images. I will file an issue over at next-fonts.

Feel free to close.

Thanks for your fast reply and the great plugin!

Edit: Issue at next-fonts: rohanray/next-fonts#6

from next-optimized-images.

cyrilwanner avatar cyrilwanner commented on May 19, 2024

That's good to know, thank you for creating the issue in next-fonts! It looks like they already added an option to disable SVG fonts.

I'll close this issue for now, but feel free to open a new one when you are experiencing another problem.

from next-optimized-images.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.