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

Explicitely export to PNG #339

Merged
merged 1 commit into from
Nov 17, 2022
Merged

Conversation

nerik
Copy link
Contributor

@nerik nerik commented Nov 17, 2022

Related to #336

Turns out, because there was a typo on the MIME type used in toDataURL (jpg, not jpeg), the file exported was already a PNG (toDataURL defaults to PNG if MIME type is invalid), only with a .jpg extension.

This PR makes it explicitly a PNG file. I have opted not to use WebP eventually because:

  • it is not supported with toDataURL in Safari
  • I'm not sure the format is common enough so that people know how to handle it on their desktops.

@nerik nerik requested a review from danielfdsilva November 17, 2022 13:31
@netlify
Copy link

netlify bot commented Nov 17, 2022

Deploy Preview for veda-ui ready!

Name Link
🔨 Latest commit 4bc2842
🔍 Latest deploy log https://app.netlify.com/sites/veda-ui/deploys/637637c935314c000a431b5e
😎 Deploy Preview https://deploy-preview-339--veda-ui.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@nerik nerik requested a review from hanbyul-here November 17, 2022 13:32
Copy link
Collaborator

@hanbyul-here hanbyul-here left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh no 😓 thanks for the fix!

@nerik nerik merged commit 60a631b into feature/analysis-presets Nov 17, 2022
@nerik nerik deleted the feature/export-as-png branch November 17, 2022 14:47
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.

3 participants