The EnkaGenshinGeneration class supports a number of arguments that customize the final version of the character card image.
Takes one value to define the language. Supported languages are listed below in the documentation. The default is Russian.
EnkaGenshinGeneration(lang = "en")
| Languege | Code | Languege | Code | |————-|———|————-|———| | English | en | русский | ru | | Tiếng Việt | vi | ไทย | th | | português | pt | 한국어 | kr | | 日本語 | jp | 中文 | zh | | 中文 | zh | Indonesian | id | | français | fr | español | es | | deutsch | de | Taiwan | cht | | Chinese | chs | | |
To transfer your image, which will be on the image card.
Supports the following types:
randomImg
)#Example str the path to the file:
ENC(img = "img.png")
#Example str image link:
ENC(img = "https//...image.png")
#Example PIL.ImageFile:
ENC(img = Image.open("img.png"))
#Example list:
ENC(img = [Image.open("img.png"), "img.png", "https//...image.png"])
This argument can give each character card its own image.
Takes the value: dict
(Can take all values from the img argument except list.)
ENC(characterImgs = {"Klee": Image.open("img.png"), "Albedo": "img.png", "Xiao": "https//...image.png"})
Randomly select images from list of img
argument.
ENC(img = [Image.open("img.png"), "img.png"], randomImg = True) #If img is not a list, then randomImg is ignored.
Adapt the background to the custom image passed in the img
argument.
ENC(img = "img.png", adapt = True)
If the character is wearing a costume, then their splashes will be available in costumes.
ENC(splashArt= True)
Replaces the background of the player card image with character images. (Used only for the second template.)
ENC(nameCards = True)
If specified, it will save the finished results to the AioEnkaImg
directory
ENC(save = True)
Generates only cards of the specified characters.
#Example str one character:
ENC(characterName = "Klee")
#Example str two or more characters:
ENC.start(uids = "757562748", characterName = "Klee, Albedo, ...")
Should the player’s UID be displayed?
ENC(hide = False)
Generate 4 template with minimum information or complete?
ENC(miniInfo = False)
Submit your user agent to EnkaNetwork
ENC(agent = "YOU_USER_AGENT")