-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
svg2png: add page #19541
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
base: main
Are you sure you want to change the base?
svg2png: add page #19541
Conversation
Add documentation for svg2png, a command-line tool that renders SVG images to PNG format using the cairo graphics library. The page includes examples for: - Basic SVG to PNG conversion - Width/height scaling with aspect ratio preservation - Combined width and height specifications - Scale factor usage - stdin/stdout piping - Image flipping (horizontal/vertical)
Managor
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I spotted these from the source code.
Update examples to show both short and long form flags for width, height, and scale options as requested in PR review.
|
|
||
| - Convert an SVG from stdin to PNG on stdout: | ||
|
|
||
| `cat {{path/to/file.svg}} | svg2png - - > {{path/to/output.png}}` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the double - - on purpose? Usually a single - is used to read from stdin
|
|
||
| `svg2png {{[-s|--scale]}} {{2.0}} {{path/to/file.svg}} {{path/to/output.png}}` | ||
|
|
||
| - Convert an SVG from stdin to PNG on stdout: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| - Convert an SVG from stdin to PNG on stdout: | |
| - Convert an SVG from `stdin` to PNG on `stdout`: |
Add documentation for svg2png, a tool that converts SVG images to PNG format using the cairo graphics library.
The page includes examples for:
Checklist
common,linux,osx,windows,sunos,android, etc.