-
Notifications
You must be signed in to change notification settings - Fork 9
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
No option to select screenshot format when copying to clipboard #36
Comments
Hi @mfsoup. You're right, PNG format is forced by design when copying to clipboard. I don't know if it can work with JPEG format. When do you need clipboard image to be JPEG? |
In my experience, the difference between JPEG and PNG on Youtube screenshots is nearly imperceptible while one is 1/5th the size. For example, these two images were taken through the extension: https://files.catbox.moe/ubq717.png https://files.catbox.moe/ua5rpw.jpeg The difference in size can be noticeable when pasting to Discord or something on slow or unstable internet connections. |
The clipboard.setImageData() API used in Firefox to copy the image in clipboard supports PNG and JPEG format. |
@mfsoup, I have done some tests in a dedicated branch here. It seems to work. |
@himanshugoswamiii, thanks for your tests. Could you please describe a bit your environment and how you check the MIME type in clipboard please? |
@joggee-fr , I'm currently running
I checked the mime type by pasting the image to my desktop. It showed the extension as |
@himanshugoswamiii Maybe you could also add some traces using Side note, my test branch were based on previous release and you MUST refresh the YouTube page for the configuration change to be applied. Sorry, I don't have a full Linux environment right now to test it myself. Would be interesting to test it with Windows also as its clipboard is expected to support JPEG and PNG (Windows Clipboard Formats). @gurumukhi, @mfsoup |
I am using Mac. |
Hey @joggee-fr, I think the problem is how copied image are being handled in my OS. So i noticed whenever i copy an image from web whether it's jpeg or png it gets copied as png only.
I will inform if i found the issue. If someone is using windows they can check if this behavior occurs there as well This post is also telling the same thing with chrome |
Sorry for the late reply but the build still copies as png for me as well. |
This issue seems very OS-dependent and I feel like there is not a reliable solution to force the MIME type in the clipboard. |
The option to change screenshot format appears for me when saving images but disappears when copying to clipboard.
The text was updated successfully, but these errors were encountered: