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

Explicitly specify PNG as the output format #33

Closed
wants to merge 1 commit into from
Closed

Explicitly specify PNG as the output format #33

wants to merge 1 commit into from

Conversation

canac
Copy link
Contributor

@canac canac commented Nov 2, 2015

Currently, when rendering, svg2png lets PhantomJS determine the output format. According to the documentation, PhantomJS uses the output file extension to choose the correct output format. However, this logic breaks down when the output file has an unusual extension or no extension at all. This pull request forces the output extension to always be PNG. The downside of this is that users will no longer be able to use this tool to generate GIFs, JPEGs, or PDFs from SVGs. My reasoning is that since this project is called svg2png that is an appropriate restriction, but as the owner, what are your thoughts regarding this?

@domenic
Copy link
Owner

domenic commented Nov 12, 2015

Thanks! Merged as 37f11c0 and 2.0.0 will be released shortly.

@domenic domenic closed this Nov 12, 2015
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.

2 participants