Start with the part of the wall the shelves leave open
A bookcase gives the eye plenty to read before a picture goes up. Look at it from the main seat and note the strongest horizontal lines. They are often the top of a low unit or the shelf at the height where most of the books sit. Aligning one edge of the artwork to one of those lines can connect the two without trying to match every shelf.
Measure from the outer edge of the bookcase to the next fixed feature, such as a window frame or corner. Use that opening to compare outside frame dimensions. If a cabinet opens under the shelves, check its handle clearance in the open position. A tall print with a narrow footprint can suit an upright shelf unit, while a wide print can balance a pair of low bookcases.
Decide which details should be visible from across the room
For shelves full of colourful spines, look for a print with a broad shape you can pick out from the sofa. Fine detail can still reward a closer view: Obsidian Loom has pale thread-like lines within a larger charcoal-and-ivory diagonal structure. Compare that level of detail with the shelves before adding more visual activity beside them.
Tape up the chosen outline and live with it while you use the room. Stand where you usually take a book out. A gap that looks generous from the sofa can feel narrow with an open cabinet door or a floor lamp in the way. Move the outline first, then compare the dimensions again using the wall art size guide.