-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Exported screenshots are PNG and not JPG on Linux #25
Comments
That's odd. Maybe electron for linux doesn't ship with JPEG support. Can you confirm that it is a problem for all videos, not just one? Could you try one of these videos: I guess we could check the actual response from toDataURL('image/jpg') and save a file according to the actual format. |
Actually it turns out that all images are exported as png but with jpg extension. I can only assume that most photo viewers don't care about the extension (instead they use magic number to identify type). But the viewer you are using is using the file extension. I have now updated code to export jpg as intended. The method can now also easily support other formats in the future. |
On Linux, exporting a screenshot creates a file called ****.jpg, however, trying to open that with an image viewer file results in the following error:
After renaming the file from .JPG to .PNG, it works.
The text was updated successfully, but these errors were encountered: