Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The "Bleu Blanc Coeur" SVG is not supported by flutter_svg #6223

Open
g123k opened this issue Jan 16, 2025 · 1 comment
Open

The "Bleu Blanc Coeur" SVG is not supported by flutter_svg #6223

g123k opened this issue Jan 16, 2025 · 1 comment

Comments

@g123k
Copy link
Collaborator

g123k commented Jan 16, 2025

I've tried to optimize the SVG, but there still are errors.
I think it's related to the shadow.

Image

SVG: https://github.com/openfoodfacts/openfoodfacts-server/blob/30c0566a603373055dac2bc2e8c2f5b85ec8dd07/html/images/lang/fr/labels/bleu-blanc-coeur.98x90.svg?plain=1

@g123k g123k changed the title The "Blue Blanc Coeur" SVG is not supported by flutter_svg The "Bleu Blanc Coeur" SVG is not supported by flutter_svg Jan 16, 2025
@monsieurtanuki
Copy link
Contributor

From https://pub.dev/packages/flutter_svg:

Check SVG compatibility

An SVG can be tested for compatibility with the vector graphics backend by running the compiler locally to see if any errors are thrown.

dart run vector_graphics_compiler -i $SVG_FILE -o $TEMPORARY_OUTPUT_TO_BE_DELETED --no-optimize-masks --no-optimize-clips --no-optimize-overdraw --no-tessellate

Recommended Adobe Illustrator SVG Configuration

  • In Styling: choose Presentation Attributes instead of Inline CSS because CSS is not fully supported.
  • In Images: choose Embded not Linked to other file to get a single svg with no dependency to other files.
  • In Objects IDs: choose layer names to add every layer name to svg tags or you can use minimal,it is optional.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 💬 To discuss and validate
Development

No branches or pull requests

2 participants