Skip to content

release_v_3_3_7

Latest
Compare
Choose a tag to compare
@DEViantUA DEViantUA released this 30 Apr 00:13
· 4 commits to main since this release
504d64c

New:

Many people have been asking for a long time to add the ability to shift the art on the card, so the moment of truth has come, for now you can only shift the art to the right on template 2, for this you need to pass the argument: setting_art

  • setting_art - Dictionary where the key is the character ID, and the value is a percentage from 0.1 to 1.0 where 0.1 is 1% and 1.0 is 100%

Example:

from enkacard import encbanner
import asyncio

items = {
    "10000073":"https://i.pximg.net/img-master/img/2024/01/20/07/30/01/115316496_p0_master1200.jpg"
}

async with encbanner.ENC(uid = "700238293", character_art = items, setting_art= {"10000073": 0.7}) as encard:
        return await encard.creat(template= 2)

asyncio.run(card()) 

In this example, the art will be shifted to the right by 70%, which is equal to 157 px maximum: 224 px