-
-
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
Fallback to System.Drawing.Bitmap
if PNG
isn't available
#33
Conversation
I don't have a Windows to test it for now but do you have any cases where it shows advantages? |
@Yeetus3141 I'm not sure why we didn't come up with this format in the first place. Is there a problem with transparent pixels? |
Yeah, I just realized the moment I sent this PR off that it won't pick up the alpha channel if there is indeed PNG data on the clipboard. I'm testing a fix locally now where it falls through to The reason for this patch is simply that it's a free-for-all on Windows in terms of what formats get put on the clipboard. Some do |
8932c0f
to
e37e715
Compare
PR updated. It'll try |
Image format fallback is a good idea, we can have the best of both worlds. We even started moving to the next version with #32 by using win32 API instead of .NET, but until it solves the alpha channel, I think we will have to live with this clunky sub-process for a while. @Yeetus3141 will have a look later, thanks a lot. |
Oh this is great! Especially now that we have fallback. Works fine on Windows. Thanks a lot for improving ImagePaste! And yes overall this approach is rather slow and we're working to overhaul it. Progress has been slow on my side but I'll update #32 |
Seems only fair, it's such a helpful addon. I use it all the time! |
I assume everything works fine, I will release a new patched version real quick. Thank you all, guys 🙏. |
System.Drawing.Bitmap
if PNG
isn't available
No description provided.