Giter Club home page Giter Club logo

Comments (6)

PzaThief avatar PzaThief commented on September 23, 2024 1

Thank you for information, please give me some time. I'll dig it.

from ditto.

PzaThief avatar PzaThief commented on September 23, 2024

You need to describe more information.
For image copy & paste, each application has own process logic. So, please describe where and what did you copy and where did you paste.
Even though it doesn't support CF_DIBV5 yet, CF_DIB already has an alpha value. (You can copy this and paste it into MS Paint 3d or PowerPoint to see it works)

from ditto.

Ulf3000 avatar Ulf3000 commented on September 23, 2024

CF_DIB already has an alpha value. (You can copy this and paste it into MS Paint 3d or PowerPoint to see it works)

doesnt work if i paste it to clipstudio/photoshop/krita/blender.

CF_DIB supports alpha but ditto overwrites the alpha channel somehow. Same with any content copied from and back into any graphics program.

without ditto it works like it should.
with ditto alpha areas will just fill with black aka the alpha channel is overwritten

theres a competitor to ditto called copyq which handles this correctly , but i like the ui and search from ditto much better. Maybe you can find the missing code in copyq´s repo.

from ditto.

PzaThief avatar PzaThief commented on September 23, 2024

With some tries, I found several things we need to know.

First, Ditto does not messes alpha channel in CF_DIB.
it was Windows behavior. you can find messed image equally with terminate Ditto and use Windows clipboard(Win+v)
nevertheless if program can use other information like CF_HDROP (file information, used to darg&drop), it appears that it works correctly.

However Ditto skips many things we want to keep exclude CF_HDROP.
Even though CF_DIB is messed already, you might feel weird only with Ditto.
Whereas window clipboard has many file format by clip, Ditto only accepts those listed in the 'Supported Types' option tab..
So many of information will be lost include PNG format not listed on the option by default.
Now the paste part program only can receive corrupted CF_DIB.

Now we know solution is just adding supported format, but it seems to common issue to happens so easily.
So I made an experimental PR to avoid this issue. it makes PNG as default support format and use an option to accept all format from clipboard.

Please tell me if you need or just opinion about PR is welcome.
Happy new year~

from ditto.

Ulf3000 avatar Ulf3000 commented on September 23, 2024

any update on this ?

from ditto.

PzaThief avatar PzaThief commented on September 23, 2024

Nothing to update on this.
But as last my comment, you can use experimental advanced option that "support all types ignoring ~~".
This option makes Ditto not mess any information from copies.
Please try this option and let me know if it helps or not.

from ditto.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.