Image Occlusion Enhanced + Scaling Images + Scratchpad

Hi,

I use Image Occlusion Enhanced (https://ankiweb.net/shared/info/1374772155), as well as AnkiMobile for iOS.

My goal is to not scroll for images on mobile. Additionally, I leverage scratchpad when on the iPad, so therefore, the image needs to be scaled to fit the area above the scratchpad.

I have tried the suggested fixes I have seen on the half-a-dozen other similar threads regarding image scaling, but none have worked.

Has anyone successfully been able to scale images on Image Occlusion Enhanced cards on AnkiMobile?

Thanks!

You could try a max height of “50%”, adjusting to suit.

https://docs.ankiweb.net/#/templates/styling?id=image-resizing

As shared by this post: Fit image to window/app, max-height does not work with a percentage for me, only max-width.

Any ideas why? If I could get max-height working with a percentage variable I think that would solve it.

That may be the document height - what about “50vh” instead?

1 Like

Perfect, that worked! Thank you!! :slight_smile: