Image Occlusion: Simple yet key improvements

Dear Dev Team,

My first post but I have been an Anki user since 2013 and one of my most precious software I have ever encountered. Thank you!

I have a few (simple? :upside_down_face:) yet very key feature requests to improve the built in Image Occlusion (“IO”), which are as follows:

A) New Tool: Regular Shape Tool

ISSUE: Assume you have an image that you want to make an IO card with, but parts of the image you simply want to edit out since it is not relevant. Today it is not possible to edit out parts of an image within Anki itself which makes you resort to third party tools for editing or circumvent it within IO by using the text box with empty spaces to block out parts. Both solutions are at best inefficient, non-intuitive, and frustrating.

SOLUTION: Add a shape tool that simply blocks out parts of the image without itself being an actual occlusion. A adjustable rectangle tool would work and having the colour option to be at least black or white (so it blends in with the image’s background colour)

B) Improved Tool: Text Box

ISSUE: i) The text box cannot be reshaped without fixed ratio when created; and ii) only allows white background which often make your non-white background images cluttery leading to inefficient reviewing with potential trauma to your eyes (:grinning_face:).

Note: I have noticed buggy behaviour where the text box can be edited without fixed ratio after adding the card and then editing existing text boxes, but after saving it resorts back to its shape as if fixed ratio fixed had been applied)

SOLUTION: i) Make it so that the text box can actually be reshaped freely without a fixed ratio; ii) adjustable text size; and iii) allow for also black background with white text.

Best regards,
apelsin

1 Like

IMO issue is the more such image editing features we add the more clunky and complex the IO editing interface becomes. Given this is a FOSS project with limited resourceresources, it’s probably better to delegate general editing to other apps and focus on more Anki-specific features.

Agreed. 2 and 3 can be allowed to do by inserting some CSS in styling. Currently, it doesn’t seem possible to do it that way though.

And yeah, welcome veteran user. Anki is awesome indeed! Check the new betas too if you’re interested: Anki 25.05 Beta.

Thank you for the reply! I believe this is an essential feature for a proper IO. Without it, you cannot easily create (screenshots) or otherwise import images into efficient cards without giving them some love first with a third party software, which is a big time consumer for me atleast. The method of covering info with a simple square would solve everything basically. On the other hand, if it is difficult work, I cannot say anything against that. I will investigate the IO Enhanced addon once again to see if it solves this issue.

IIRC, you can open the images in file manager directly from Anki.

If you can, test this addon I made recently

https://ankiweb.net/shared/info/1664367739

It’d be nice if you have alternative names in English for your add-ons. Wdyt?

(Btw, got to saw that deluded English speaker attacking you for using pt-br, sympathise with you on that.)

I put all of them with an English option in parentheses, some of them didn’t have room for the full name, so I only put part of the name in English.

About the angry American, unfortunately he downvoted some of my addons just because they were in Portuguese, but that’s okay, it’s no problem. All of my addons are on github and can be easily translated into English, since most of them only have one init file. So just open Google Translate and translate the init file, there’s no mistake.

By the way, the code for this image occlusion addon is here

1 Like