Skip to content
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

[Feat] Image occlusion #34

Open
Gaaruda opened this issue Apr 21, 2021 · 10 comments
Open

[Feat] Image occlusion #34

Gaaruda opened this issue Apr 21, 2021 · 10 comments
Labels
enhancement New feature or request

Comments

@Gaaruda
Copy link

Gaaruda commented Apr 21, 2021

No description provided.

@st3v3nmw
Copy link
Owner

I honestly don't see how we can do image occlusion without cluttering up the notes a lot. We have to store the position of the occlusion box, say [x1, y1, x2, y2] at the bare minimum, for all boxes we have. And then store scheduling information for each of those occlusions.

Pull requests on this are welcome though.

@st3v3nmw st3v3nmw changed the title Can we have Image occulusion [Feat] Image occlusion Apr 22, 2021
@st3v3nmw st3v3nmw added the enhancement New feature or request label Apr 22, 2021
@st3v3nmw st3v3nmw mentioned this issue May 15, 2021
@st3v3nmw
Copy link
Owner

Oops, closed wrong issue.

@andrewcrook
Copy link
Contributor

I honestly don't see how we can do image occlusion without cluttering up the notes a lot. We have to store the position of the occlusion box, say [x1, y1, x2, y2] at the bare minimum, for all boxes we have.

Couldn't the data be stored in metadata?
Then hide it.

https://forum.obsidian.md/t/can-you-hide-the-metadata-box-when-previewing-a-note-with-yaml-metadata/21931/8

Or use the hider plug-in.

@PaperOrb
Copy link

PaperOrb commented Jun 2, 2022

Just spitballing here, but maybe the amount of clutter could be limited by storing the coordinate data as a serialized number like 01234567 instead of an array like [[0, 1, 2, 3], [4, 5, 6, 7]].

@andrewcrook
Copy link
Contributor

andrewcrook commented Jun 3, 2022

I have seen plugins do this in pages

<!-- 
JSON Data Here
-->

that hides it from view mode.

I have also seen an annotation plugin that stores JSON in a separate file with extension e.g this could be docname.occ By default these files would be hidden and I suppose the plugin can add it to a hidden file list, if obsidian has one , just to make sure.

Values in the memory would need to be ordered lists or key pair.
JSON the standard supposedly stats the order should be preserved with arrays, however, in practise you cannot not guaranteed the order is preserved between different JSON parsers (even some browsers) so would probably have to use key pair and have the key state the order.

@Moot-a
Copy link

Moot-a commented Jun 6, 2022

A way we could circumvent this is a program (or obsidian plugin directly) that creates single-line flashcards from an image that can :

  1. occlude what we want to remember
    • single part
    • multiple sequential parts
    • grouped parts (multiple parts occluded at the same time)
  2. Mark them as siblings
  3. Output :
    1. Files as jpg for space consideration or links to the images (upload directly to Imgur, or other image sharing services)
      • With correct formatting (this is just for reference)
        With a way of using cloze deletion maybe, might be easier to implement for single and multiple answers cards.
        • (image)::(occluded_image)
        • (url_to_image)::(url_to_occluded_image)
    2. Copy directly to clipboard, to txt file, etc...

Of course this would be a hacky way of doing things and would take space, if there is a way to censor directly on the base image without having to create a new one for each answers would save space but add complexity.

I would like to add that I'm not really keen on developing programs (will be retrying for a 3rd time my first year in a bachelor in software dev, but didn't have the "perfect" background beforehand, and also medical issues but shush), so I think this could somewhat easily be implemented, but I have no idea how.

@kingpatrickj
Copy link

Sorry to necro this, but is there a way to leverage excalidraw or canvas? Make occlusions there, and add some syntax over the occluding element that tells the plugin to include it in the queue?

@andrewcrook
Copy link
Contributor

chat to the excalidraw and excalibrain plugin guy I am sure he might be interested in the idea

however, I don't think adding a dependency to this plugin is a good idea it should be shelf contained and offer occlusions , of course , thats just my opinion.

@TolgaKerem07
Copy link

#162

If this feature is added, image occlusion data will be prevented from corrupting the notes, right?

@LeonelRFF
Copy link

As mentioned in #1035 there is the possibility of integrating this with excalidraw, previously its developer has integrated compatibility with another PDF++ plugin. Although it has the possibility of hiding words easily with text as well as cloze

https://youtu.be/ZnCcMtWj8CA?si=hEOGwlOy5KHEGtj2

But there are no easy, good, hard buttons to save the review data.

Just to mention one possibility, the boxes that will be hidden could be selectable and when clicking the show answer button, said element will lower its opacity to zero, that is, making it invisible

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

8 participants