forge icon indicating copy to clipboard operation
forge copied to clipboard

HBG: Specialize mechanic – make images work

Open Northmoc opened this issue 2 years ago • 2 comments

Works for local images only – I'd like to get this going with the auto-download missing card art as well before marking ready to merge.

If a specialize image is missing, Forge will create a file with the right name, but use the main face: image image

Northmoc avatar Aug 31 '22 21:08 Northmoc

so what's not working? the scryfall code for downloading?

kevlahnota avatar Sep 02 '22 02:09 kevlahnota

so what's not working? the scryfall code for downloading?

Correct – Scryfall download doesn't work I also need to put some images in the FTP to check if the FTP download will work

Northmoc avatar Sep 02 '22 13:09 Northmoc

so what's not working? the scryfall code for downloading?

Correct – Scryfall download doesn't work I also need to put some images in the FTP to check if the FTP download will work

hmm maybe you can use the uri or the id instead of the collector edition from the all parts (main card) specifically for the specialize card, it has the the link and name and just filter them on ImageUtil getdownloadurl (replace the first parts and convert them to jpg links)..

{
  "object": "card",
  "id": "51dbd7e4-51f9-4995-8cb1-78ae302cdbbb",
  "oracle_id": "0432a120-be1b-496b-b8cd-36f757e09425",
  "multiverse_ids": [

  ],
  "arena_id": 81495,
  "name": "Klement, Novice Acolyte",
  "lang": "en",
  "released_at": "2022-07-07",
  "uri": "https://api.scryfall.com/cards/51dbd7e4-51f9-4995-8cb1-78ae302cdbbb",
  "scryfall_uri": "https://scryfall.com/card/hbg/1/klement-novice-acolyte?utm_source=api",
  "layout": "normal",
  "highres_image": true,
  "image_status": "highres_scan",
  "image_uris": {
    "small": "https://c1.scryfall.com/file/scryfall-cards/small/front/5/1/51dbd7e4-51f9-4995-8cb1-78ae302cdbbb.jpg?1656630180",
    "normal": "https://c1.scryfall.com/file/scryfall-cards/normal/front/5/1/51dbd7e4-51f9-4995-8cb1-78ae302cdbbb.jpg?1656630180",
    "large": "https://c1.scryfall.com/file/scryfall-cards/large/front/5/1/51dbd7e4-51f9-4995-8cb1-78ae302cdbbb.jpg?1656630180",
    "png": "https://c1.scryfall.com/file/scryfall-cards/png/front/5/1/51dbd7e4-51f9-4995-8cb1-78ae302cdbbb.png?1656630180",
    "art_crop": "https://c1.scryfall.com/file/scryfall-cards/art_crop/front/5/1/51dbd7e4-51f9-4995-8cb1-78ae302cdbbb.jpg?1656630180",
    "border_crop": "https://c1.scryfall.com/file/scryfall-cards/border_crop/front/5/1/51dbd7e4-51f9-4995-8cb1-78ae302cdbbb.jpg?1656630180"
  },
  "mana_cost": "{1}{W}",
  "cmc": 2.0,
  "type_line": "Legendary Creature — Tiefling Cleric",
  "oracle_text": "Specialize {2}\nWhen Klement, Novice Acolyte enters the battlefield, creature cards in your hand perpetually get +1/+1.",
  "power": "2",
  "toughness": "2",
  "colors": [
    "W"
  ],
  "color_identity": [
    "W"
  ],
  "keywords": [

  ],
  "all_parts": [
    {
      "object": "related_card",
      "id": "51dbd7e4-51f9-4995-8cb1-78ae302cdbbb",
      "component": "combo_piece",
      "name": "Klement, Novice Acolyte",
      "type_line": "Legendary Creature — Tiefling Cleric",
      "uri": "https://api.scryfall.com/cards/51dbd7e4-51f9-4995-8cb1-78ae302cdbbb"
    },
    {
      "object": "related_card",
      "id": "9122efb8-c9f2-46e3-8cb0-2917a60c99d3",
      "component": "combo_piece",
      "name": "Klement, Death Acolyte",
      "type_line": "Legendary Creature — Tiefling Cleric",
      "uri": "https://api.scryfall.com/cards/9122efb8-c9f2-46e3-8cb0-2917a60c99d3"
    },
    {
      "object": "related_card",
      "id": "053606f1-9abd-4b74-a858-d702afcc491d",
      "component": "combo_piece",
      "name": "Klement, Knowledge Acolyte",
      "type_line": "Legendary Creature — Tiefling Cleric",
      "uri": "https://api.scryfall.com/cards/053606f1-9abd-4b74-a858-d702afcc491d"
    },
    {
      "object": "related_card",
      "id": "647a26b0-931c-4751-8bd1-1da6a18f42f0",
      "component": "combo_piece",
      "name": "Klement, Life Acolyte",
      "type_line": "Legendary Creature — Tiefling Cleric",
      "uri": "https://api.scryfall.com/cards/647a26b0-931c-4751-8bd1-1da6a18f42f0"
    },
    {
      "object": "related_card",
      "id": "783a7e1a-2ff2-4c0f-bfcc-f08ffcb07f0f",
      "component": "combo_piece",
      "name": "Klement, Nature Acolyte",
      "type_line": "Legendary Creature — Tiefling Cleric",
      "uri": "https://api.scryfall.com/cards/783a7e1a-2ff2-4c0f-bfcc-f08ffcb07f0f"
    },
    {
      "object": "related_card",
      "id": "b2e5dab8-3a04-4c14-815a-df2de7e81a57",
      "component": "combo_piece",
      "name": "Klement, Tempest Acolyte",
      "type_line": "Legendary Creature — Tiefling Cleric",
      "uri": "https://api.scryfall.com/cards/b2e5dab8-3a04-4c14-815a-df2de7e81a57"
    }
  ],
  "legalities": {
    "standard": "not_legal",
    "future": "not_legal",
    "historic": "legal",
    "gladiator": "legal",
    "pioneer": "not_legal",
    "explorer": "not_legal",
    "modern": "not_legal",
    "legacy": "not_legal",
    "pauper": "not_legal",
    "vintage": "not_legal",
    "penny": "not_legal",
    "commander": "not_legal",
    "brawl": "not_legal",
    "historicbrawl": "legal",
    "alchemy": "legal",
    "paupercommander": "not_legal",
    "duel": "not_legal",
    "oldschool": "not_legal",
    "premodern": "not_legal"
  },
  "games": [
    "arena"
  ],
  "reserved": false,
  "foil": false,
  "nonfoil": true,
  "finishes": [
    "nonfoil"
  ],
  "oversized": false,
  "promo": false,
  "reprint": false,
  "variation": false,
  "set_id": "35528ede-7870-4598-a2ee-7f3d6464a74b",
  "set": "hbg",
  "set_name": "Alchemy Horizons: Baldur's Gate",
  "set_type": "alchemy",
  "set_uri": "https://api.scryfall.com/sets/35528ede-7870-4598-a2ee-7f3d6464a74b",
  "set_search_uri": "https://api.scryfall.com/cards/search?order=set&q=e%3Ahbg&unique=prints",
  "scryfall_set_uri": "https://scryfall.com/sets/hbg?utm_source=api",
  "rulings_uri": "https://api.scryfall.com/cards/51dbd7e4-51f9-4995-8cb1-78ae302cdbbb/rulings",
  "prints_search_uri": "https://api.scryfall.com/cards/search?order=released&q=oracleid%3A0432a120-be1b-496b-b8cd-36f757e09425&unique=prints",
  "collector_number": "1",
  "digital": true,
  "rarity": "rare",
  "card_back_id": "0aeebaf5-8c7d-4636-9e82-8c27447861f7",
  "artist": "Maria Poliakova",
  "artist_ids": [
    "c136266d-67bb-44fa-ad13-8556efd9caec"
  ],
  "illustration_id": "b79b2727-636e-41b8-9485-39f2c5827cf9",
  "border_color": "black",
  "frame": "2015",
  "security_stamp": "arena",
  "full_art": false,
  "textless": false,
  "booster": true,
  "story_spotlight": false,
  "prices": {
    "usd": null,
    "usd_foil": null,
    "usd_etched": null,
    "eur": null,
    "eur_foil": null,
    "tix": null
  },
  "related_uris": {
    "tcgplayer_infinite_articles": "https://infinite.tcgplayer.com/search?contentMode=article&game=magic&partner=scryfall&q=Klement%2C+Novice+Acolyte&utm_campaign=affiliate&utm_medium=api&utm_source=scryfall",
    "tcgplayer_infinite_decks": "https://infinite.tcgplayer.com/search?contentMode=deck&game=magic&partner=scryfall&q=Klement%2C+Novice+Acolyte&utm_campaign=affiliate&utm_medium=api&utm_source=scryfall",
    "edhrec": "https://edhrec.com/route/?cc=Klement%2C+Novice+Acolyte"
  }
}

kevlahnota avatar Sep 03 '22 05:09 kevlahnota