CardImageUtils

Utility functions for accessing card image URLs.

Usage:

import { CardImageUtils } from '@devmugi/scryfall-api';

const imageUrl = CardImageUtils.getNormalImageUrl(card);

Functions

Link copied to clipboard
fun getArtCropUrl(card: Card): String?

Gets the art crop image URL for the card, if available

Link copied to clipboard
fun getLargeImageUrl(card: Card): String?

Gets the large image URL for the card, if available

Link copied to clipboard
fun getNormalImageUrl(card: Card): String?

Gets the normal image URL for the card, if available

Link copied to clipboard
fun getSmallImageUrl(card: Card): String?

Gets the small image URL for the card, if available