Image Occlusion is broken, it works here and there but now not that much anymore, I paste image, I cloze it then it doesnt appear in the card. I wanna do it fast but this keeps happening and it slows me down heavily checking whether its working or not, its annoying af
What does that mean exactly? When does it work, when does it not work? What does “it does work” mean to you?
Do you mean it’s just not visible in the template editor or it’s actually not there if you view the card in the deck browser?
No need to use such language.
Also:
- Basic info like
help > about > copy debug info
and your operating system is missing and possibly needed. - Did you try basic troubleshooting? See:
i now know how to recreate, just paste the image then put a mask really fast and the image wont show up
i used to do this in hyperspeeds but it doesnt work anymore idk why, skill issue?
i had to do this ritual like trying to hover my mouse on the add button after pasting the image, but yeah you just need to wait for the image to “settle down”, kinda weird.
Right, I can reproduce it too.
Steps to reproduce
- Have a picture in your clipboard.
- Open the add cards dialog.
- Select the built-in Image Occlussion (IO) note type.
- Press the paste button and immediatly after draw a square with your mouse (as fast as possible)
- The picture won’t be embedded into the card, but the data from the rectangle is imbedded (and the picture is displayed in the add cards dialog).
Additional Contex
When the IO was successful, I get the following img
attribute in dev console (as an example):
<img id="image" class="svelte-1ivj53x" src="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODwwQFxQYGBcUFhYaHSUfGhsjHBYWICwgIyYnKSopGR8tMC0oMCUoKSj/2wBDAQcHBwoIChMKChMoGhYaKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCj/wAARCADkANkDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ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m41v4aeKbKyUvcnVJ5EQdWKyK2PqQD+NbGteN9N1Lwnd2NmJ5dZu7VrcWAgfzVkZdpBGOAMnn2oAv+IvGFzbP4ZfRbeG6i1kNtWXIbJVSnIPyjLfNweAam1XX9Y0uPS9Nkt7G68RajI6xpCXWBEXku2ctgDH15xWBeadJpV/8NbC4wZrcyI+DkBhGuf1q18TtLifXNB1e/tZ7nSbcyQ3ggLho1YfK/yENgHrj096ANRde1rSNa06y8Swae9vqD+TDc2RcBJccKytnr2INdhXmWlW3gq+17T4tDsL3UZ45BN58c87R2xXlWYu2Ovbn6V6bQAUUUUAFFFFABRRRQAUUUUAFFFFABQaKDQBFL0qtVmXpVagC9TSilwxVSw6EjkU6igAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACg0UGgCKXpVarMvSq1AFvY3/PR/wAh/hRsb/no/wCQ/wAKKKADY3/PR/yH+FGxv+ej/kP8KKKADY3/AD0f8h/hRsb/AJ6P+Q/woooANjf89H/If4UbG/56P+Q/woooANjf89H/ACH+FGxv+ej/AJD/AAoooANjf89H/If4UbG/56P+Q/woooANjf8APR/yH+FGxv8Ano/5D/CiigA2N/z0f8h/hRsb/no/5D/CiigA2N/z0f8AIf4UbG/56P8AkP8ACiigA2N/z0f8h/hRsb/no/5D/CiigA2N/wA9H/If4UbG/wCej/kP8KKKADY3/PR/yH+FGxv+ej/kP8KKKADY3/PR/wAh/hQUb/no/wCQ/wAKKKAIpUbH+sf9P8KrbG/56N+n+FFFAH//2Q==" width="146" height="154" style="left: 594.68px; top: 1.5px;">
If the bug occured, I get this instead:
<img id="image" class="svelte-1ivj53x" src="data:image/png;base64," width="0" height="0" style="left: 668px; top: 170px;">
For some reason the src
isn’t right here.
Also, this doesn’t happen consistently and feels somewhat random.
yeah, you need the picture to “settle down”. I just click the picture after it shows up then make a rectangle and the issue doesnt appear 99% of the time.
it could mean that clipboard image address looks asinine that the computer just sort of gives up when you put a box real fast like “hey I havent figured it out where this image yet!”. i noticed in that of bug yours where there’s png in the src, did you check the option “image something paste becomes png”? i didn’t, can you recreate it?
No, I do not have this setting turned on. I made a screenshot which just happens to be automatically saved as a .png file (as a default on my linux system).
Are you saying you see different bahavior based on the image file extension?
nah, not as of now
Okay.
Maybe someone that knows the code base can look into the reason why this issue occurs and can open a pull request.
Might have to wait some time though until someone sees this.
or they could integrate a snippet tool for image occlusion. like SnagIt
another thing. when you try to reset image occlusion if it doesnt work and paste the same picture, the bug occurs, but if it worked and you reset image occlusion and recreate the bug, the bug doesnt appear.