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 from0.1
to1.0
where0.1
is1%
and1.0
is100%
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