← Design Journal

Digital Artwork

How to Prepare Card Artwork for Digital Use

SriLankan Airlines Obsidian Elite card design concept
Card artwork is easiest to prepare when its proportions and fine detail are kept intact.

Card artwork is full of small details: fine lines, gradients, metallic highlights and small logos. These are the first things to suffer when an image is resized or compressed badly, so a few careful choices matter.

Keep the aspect ratio

Aspect ratio is width divided by height. Physical bank cards are close to 85.6 × 54 mm, a ratio of about 1.585:1. My artwork is 1536 × 969 px, which is nearly the same proportion. If you resize to a different ratio, the card is stretched or squashed; if you crop it, edges and corners are lost. When displaying a card on a page or screen, show the whole image (in CSS, object-fit: contain) rather than filling a box and cropping (cover).

Choose the right dimensions

An image only needs enough pixels to look sharp at the size it is shown. Too few pixels look soft; far too many waste storage and loading time. Screens with a higher pixel density need roughly twice the pixel width for the same displayed size. Physical dimensions in millimetres and digital dimensions in pixels are different things: a digital file has no real-world size until it is displayed or printed.

Pick a suitable format

Compress carefully

Compression trades detail for size. After exporting, view the image at 100% zoom and look closely at thin lines, text and smooth gradients, where blur and banding show first. Lower the quality only until a difference becomes visible, then step back a little.

A note about Apple Wallet

Cards added to Apple Wallet for payments display artwork provided by the card issuer, and card art for payment networks goes through approval by the issuer and the network. Because of this, personal artwork is not a supported way to change a payment card’s appearance, and I don’t claim that any specific image size is an official Apple Wallet requirement. Custom passes for things like memberships or tickets are created differently, and you should check the current instructions for whichever pass app or service you use. See Apple’s Wallet developer pages for official information.

Showing artwork on a website

Add width and height attributes to images so the page doesn’t jump while loading. Use srcset to let the browser choose a suitable file for each screen, and loading="lazy" for images below the first screen, but not for the main image visible on load.

My design perspective

My card concepts are exported as 1536 × 969 px artwork so the full card is visible with all its fine detail. I keep the whole card in view rather than cropping, because the corners and edges are part of the design.

Further reading: MDN: Responsive images

Related projects

Related articles