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

Document SVG requirements so users know how to do it #757

Open
ronaldtse opened this issue Apr 2, 2024 · 3 comments
Open

Document SVG requirements so users know how to do it #757

ronaldtse opened this issue Apr 2, 2024 · 3 comments
Assignees
Labels

Comments

@ronaldtse
Copy link
Contributor

When saving a vector image in Illustrator, you need to export it using "Export as..." > "SVG".

The normal "Save as..." > "SVG" will create an SVG that crashes Apache Batik.

Export options:
Screenshot 2024-04-02 at 23 00 48

We need to update metanorma.org to explain what Metanorma's SVG requirements. SVG has never been a clean format and we need detailed steps to tell people how to export proper SVGs.

Originally posted by @ronaldtse in https://github.com/metanorma/mn-samples-jis/issues/21#issuecomment-2032469287

@ronaldtse
Copy link
Contributor Author

@anermina @manuelfuenmayor you might have additional insights too! Please post them here.

@ronaldtse
Copy link
Contributor Author

Also PNG DPIs are important, @Intelligent2013 can you give some insights into what DPIs work with raster images here?

@Intelligent2013
Copy link
Contributor

Intelligent2013 commented May 24, 2024

Metanorma PDF generation mechanism (mn2pdf tool based on the Apache FOP) uses the DPI from the raster image meta-information. If image doesn't have the DPI value, then the 96dpi is using for the image rendering. If image doesn't fit on the page, then it will be scaled down automatically to fit on the page. For images in the table, to properly rendering them, highly recommend to set the DPI for the images or set the width/height attribute in the adoc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: 🏔 High priority
Development

No branches or pull requests

4 participants