ImageKeys: unify PaperCard imageKeys - #7757
Conversation
|
Will this be also compatible with the file name scheme we're using at the moment? For the users of full card art collections like myself, it'll be a total nightmare trying to rename all the cards to the new format. If the file naming scheme changes completely, I'd say we need some kind of a converter to convert old collections to the new format. I wish it were unnecessary and we had a Scryfall downloader that would grab all the proper art (like in XMage), but we don't have that, unfortunately, so that's a moot point :( What do you think? |
i try to add fallbacks, but the new Filename will have CollectorNumber instead of Artindex so SecretLair doesn't mess up our files anymore |
|
The different situations of ImageKeys: (With/Without Set, With/Without CN, With/Without Artist, maybe back) Then I don't need to ask the Edition/EditionEntry when I want to display the Artist otherwise, displaying the Artist from the Card might show hidden info |
Sounds like the amount of data here is growing beyond what a string is good at storing. Maybe the image key needs to be expanded into a full on class/record for containing image metadata? Then we could pile on whatever extra metadata we want - specialize mode, front or back, artist, flipped flag, whether we even expect it exists on Scryfall or if it's something local like an Adventure card or placeholder. It could just have its own methods for translating itself into a filename, a legacy filename, a Scryfall URL, a hashcode, etc. |
Images are currently downloaded on-demand on mouseover, which can feel sluggish. This change adds a new preference that, when enabled, will prefetch all images from a (non-infinite) card pool when opening it. Primarily for all Sanction Format modes. Disabled by default. Added only to desktop. Although the mobile version also loads images on-demand, it does so as soon as the cards are visible, which is less of an issue. Note: will require adjustment when `imageKey` refactor (Card-Forge#7757) lands.
Images are currently downloaded on-demand on mouseover, which can feel sluggish. This change adds a new preference that, when enabled, will prefetch all images from a (non-infinite) card pool when opening it. Primarily for all Sanction Format modes. Disabled by default. Added only to desktop. Although the mobile version also loads images on-demand, it does so as soon as the cards are visible, which is less of an issue. Note: will require adjustment when `imageKey` refactor (Card-Forge#7757) lands.
Images are currently downloaded on-demand on mouseover, which can feel sluggish. This change adds a new preference that, when enabled, will prefetch all images from a (non-infinite) card pool when opening it. Primarily for all Sanction Format modes. Disabled by default. Added only to desktop. Although the mobile version also loads images on-demand, it does so as soon as the cards are visible, which is less of an issue. Note: will require adjustment when `imageKey` refactor (Card-Forge#7757) lands.
Images are currently downloaded on-demand on mouseover, which can feel sluggish. This change adds a new preference that, when enabled, will prefetch all images from a (non-infinite) card pool when opening it. Primarily for all Sanction Format modes. Disabled by default. Added only to desktop. Although the mobile version also loads images on-demand, it does so as soon as the cards are visible, which is less of an issue. Note: will require adjustment when `imageKey` refactor (Card-Forge#7757) lands.
Images are currently downloaded on-demand on mouseover, which can feel sluggish. This change adds a new preference that, when enabled, will prefetch all images from a (non-infinite) card pool when opening it. Primarily for all Sanction Format modes. Disabled by default. Added only to desktop. Although the mobile version also loads images on-demand, it does so as soon as the cards are visible, which is less of an issue. Note: will require adjustment when `imageKey` refactor (Card-Forge#7757) lands.
|
This PR has not been updated in a while nad has been marked on stale. Stale PRs will be auto closed |
|
Blocked by #7846 |
Images are currently downloaded on-demand on mouseover, which can feel sluggish. This change adds a new preference that, when enabled, will prefetch all images from a (non-infinite) card pool when opening it. Primarily for all Sanction Format modes. Disabled by default. Added only to desktop. Although the mobile version also loads images on-demand, it does so as soon as the cards are visible, which is less of an issue. Note: will require adjustment when `imageKey` refactor (Card-Forge#7757) lands.
Images are currently downloaded on-demand on mouseover, which can feel sluggish. This change adds a new preference that, when enabled, will prefetch all images from a (non-infinite) card pool when opening it. Primarily for all Sanction Format modes. Disabled by default. Added only to desktop. Although the mobile version also loads images on-demand, it does so as soon as the cards are visible, which is less of an issue. Note: will require adjustment when `imageKey` refactor (Card-Forge#7757) lands.
Images are currently downloaded on-demand on mouseover, which can feel sluggish. This change adds a new preference that, when enabled, will prefetch all images from a (non-infinite) card pool when opening it. Primarily for all Sanction Format modes. Disabled by default. Added only to desktop. Although the mobile version also loads images on-demand, it does so as soon as the cards are visible, which is less of an issue. Note: will require adjustment when `imageKey` refactor (Card-Forge#7757) lands.
Images are currently downloaded on-demand on mouseover, which can feel sluggish. This change adds a new preference that, when enabled, will prefetch all images from a (non-infinite) card pool when opening it. Primarily for all Sanction Format modes. Disabled by default. Added only to desktop. Although the mobile version also loads images on-demand, it does so as soon as the cards are visible, which is less of an issue. Note: will require adjustment when `imageKey` refactor (Card-Forge#7757) lands.
Images are currently downloaded on-demand on mouseover, which can feel sluggish. This change adds a new preference that, when enabled, will prefetch all images from a (non-infinite) card pool when opening it. Primarily for all Sanction Format modes. Disabled by default. Added only to desktop. Although the mobile version also loads images on-demand, it does so as soon as the cards are visible, which is less of an issue. Note: will require adjustment when `imageKey` refactor (Card-Forge#7757) lands.
Images are currently downloaded on-demand on mouseover, which can feel sluggish. This change adds a new preference that, when enabled, will prefetch all images from a (non-infinite) card pool when opening it. Primarily for all Sanction Format modes. Disabled by default. Added only to desktop. Although the mobile version also loads images on-demand, it does so as soon as the cards are visible, which is less of an issue. Note: will require adjustment when `imageKey` refactor (Card-Forge#7757) lands.
Images are currently downloaded on-demand on mouseover, which can feel sluggish. This change adds a new preference that, when enabled, will prefetch all images from a (non-infinite) card pool when opening it. Primarily for all Sanction Format modes. Disabled by default. Added only to desktop. Although the mobile version also loads images on-demand, it does so as soon as the cards are visible, which is less of an issue. Note: will require adjustment when `imageKey` refactor (Card-Forge#7757) lands.
Images are currently downloaded on-demand on mouseover, which can feel sluggish. This change adds a new preference that, when enabled, will prefetch all images from a (non-infinite) card pool when opening it. Primarily for all Sanction Format modes. Disabled by default. Added only to desktop. Although the mobile version also loads images on-demand, it does so as soon as the cards are visible, which is less of an issue. Note: will require adjustment when `imageKey` refactor (Card-Forge#7757) lands.
Images are currently downloaded on-demand on mouseover, which can feel sluggish. This change adds a new preference that, when enabled, will prefetch all images from a (non-infinite) card pool when opening it. Primarily for all Sanction Format modes. Disabled by default. Added only to desktop. Although the mobile version also loads images on-demand, it does so as soon as the cards are visible, which is less of an issue. Note: will require adjustment when `imageKey` refactor (Card-Forge#7757) lands.
Images are currently downloaded on-demand on mouseover, which can feel sluggish. This change adds a new preference that, when enabled, will prefetch all images from a (non-infinite) card pool when opening it. Primarily for all Sanction Format modes. Disabled by default. Added only to desktop. Although the mobile version also loads images on-demand, it does so as soon as the cards are visible, which is less of an issue. Note: will require adjustment when `imageKey` refactor (Card-Forge#7757) lands.
Images are currently downloaded on-demand on mouseover, which can feel sluggish. This change adds a new preference that, when enabled, will prefetch all images from a (non-infinite) card pool when opening it. Primarily for all Sanction Format modes. Disabled by default. Added only to desktop. Although the mobile version also loads images on-demand, it does so as soon as the cards are visible, which is less of an issue. Note: will require adjustment when `imageKey` refactor (Card-Forge#7757) lands.
Closes #7532
The Goal is to simplify the ImageKeys into a more readable format
c:Name|Set|CNand when it is finally used as filename, into
Set/CN_Name.fullborder.jpgOr would this be better
Set/Name.CN.fullborder.jpgala XMage?Also updated the scryfall downloader to support artCrop on Desktop
I don't know if this really was needed?
CardView.getCardForUi(ImageUtil.getPaperCardFromImageKey(cardView.getCurrentState().getTrackableImageKey()));The Artist Info on Mobile, for this it seems the good way was to add a new Attribute, but it causes crashs on Player Effects like Speed
right now, the Artist Info for Tokens falls back to WOTC?
Specialize does have different CollectorNumber needed for Scryfall:
c:Jaheira, Ruthless Harper|HBG|16bis turned intoHBG/16b_Jaheira, Ruthless Harper.fullborder.jpg