Code Monkey home page Code Monkey logo

Comments (1)

ArenT1981 avatar ArenT1981 commented on June 22, 2024

I think the current handling/treatment of pasted images is in general absolutely fine. You suggest:

If the pasted picture exceeds the width and length of the current editor, it will be reduced to 70% and 80% of the editor.

However this makes no sense, due to the fact that width/length of the editor is entirely dependent on the current size of the application window, to whatever the user has resized it to using their window manager. I think what you're asking is that the image display could have a feature where it automatically dynamically resizes (in memory, not the actual stored image data) the displayed image such that it is scaled to some percentage of the editor width, say 80%, as you suggest. If so, I suppose that could be added as a preference toggle, or possibly right-click context option.

Some (most?) of us actually want the image to always be 100% scaled, even if we paste in a huge 4k screenshot (for example), precisely because that way all of the detail in the image is clear. Using a horizontal scrollbar in such a scenario to move across the image works just fine.

Personally I think the current functionality, where you can right-click and destructively resize within Cherrytree, if you wish, is near perfect behaviour. Some people might prefer that it always retains the original image data, and allows you to do a "non-destructive" resize, but again, this should probably be a preference toggle, as if you've decided to explicitly scale down the image, storing the full size image would be considered a waste of storage in the Cherrytree database in that scenario. After all, if you still/also wanted to retain a full-size copy, you could also attach that within the node, but as a file attachment rather than as in-line displayed image.

from cherrytree.

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.