Inky Frame: Can't get gallery to work, only top part of images loading

I can’t seem to get image galleries to work on my inky frame.

I’ve had success displaying images that are stored on the pico’s root itself. Last time I tried (April 2024), there was an issue with the SD card, showing the following error:

MPY: soft reboot
Displaying /sd/0005.jpg
Traceback (most recent call last):
  File "<stdin>", line 63, in <module>
  File "<stdin>", line 44, in display_image
RuntimeError: JPEG: could not read file/buffer.

I bought the frame (actually, two) just to show galleries, and now I finally got around to resetting everything and trying again from 0. Now, I seem to be able to contact my SD card using the code posted here, but images just load on the upper part of the screen (see

).

I’ve tried both my own and the example’s jpgs, so it’s not a problem of how I prepared my photos either. They also show fine when I display them directly from the pico’s root using the code from the getting started page:

from picographics import PicoGraphics, DISPLAY_INKY_FRAME_7 as DISPLAY
from jpegdec import JPEG

graphics = PicoGraphics(DISPLAY)
j = JPEG(graphics)

j.open_file("test2.jpg")
j.decode()
graphics.update()

I have no clue what the problem is.
The only thing I suspect is that the SD card is somehow not compatible. When I run inky_frame_placekitten.py for example, I get the following error:

Traceback (most recent call last):
  File "<stdin>", line 41, in <module>
  File "sdcard.py", line 1, in __init__
  File "sdcard.py", line 1, in init_card
OSError: SD card CSD format not supported

I have also read a similar mistake on the forum (can’t find it anymore), so maybe my card is bad. It’s an INTENSO. I have formatted it with FAT and the only block size availabe (64).

Or could it be something else?