kokarn / tarkov-image-generator

2 stars 6 forks source link

Image names should match item names #3

Open alexjshepler opened 2 years ago

alexjshepler commented 2 years ago

It would be a nice qol thing if the item names were the same as the file names, especially for some developing applications so you don't have to manually go through and rename each item or go through and manually assign every item to the file that was generated

kokarn commented 2 years ago

Hey! Nice that you found this project!

It's built with the Tarkov Tools API in mind that provides all images hosted for you, for example https://assets.tarkov-tools.com/6176a48d732a664031271438-icon.jpg Icon

A query to get all images would be something like

{
  itemsByType(type: any) {
    name
    iconLink
    imageLink
    gridImageLink
  }
}

and can be tested here https://tarkov-tools.com/___graphql

With that said, I can see the use to have the local images be something more reasonable and would for sure welcome a PR that does that 👍