Releases: DEViantUA/EnkaCard
release_v_3_3_7
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
Release V.3.3.6
In this version, the display of the Akashic chart has been corrected, now it works and is displayed correctly, and the generation for template 2 has also been accelerated.
A profile (website) was also added to the StarRailCard API: https://starraillcard.up.railway.app/gen/profile/{UID}
And the ability to generate cards via api:
Example:
import requests
def main():
url = "https://starraillcard.up.railway.app/api/genshin/card"
headers = {'Content-Type': 'application/json'}
data = {
"uid": "724281429",
"lang": "ru",
"name": "10000026",
"template": "1",
"image": {"10000026": "https://i.pximg.net/img-master/img/2023/06/20/16/53/28/109183352_p0_master1200.jpg"}
}
response = requests.post(url, json=data, headers=headers)
if response.status_code == 200:
data = response.json()
if data.get("message") is None:
print("Request successful")
print(data)
else:
print("Request failed")
print(data.get("message"))
else:
print(f"Request failed with status code {response.status_code}")
main()
Release V.3.2.9
NEW:
- Added file:
requirements.txt
- Fixed splashes with new characters.
- Fixed a bug with
python-magic
, now if you have a problem installing it, use an alternative method.
Important
Let me remind you once again that the code on PyPi is always fresher than the code on GitHub, since GitHub is only a page for getting acquainted with the module and a small documentation
Release V.3.1.2
New:
-
New feature added: Tools
- With
Tools
you can update assetsenkanetwork.py
, - Check images.
- Save images to the server.
- With
-
Added 2 new templates:
- One for cards
- One for profile
-
Fixed some bugs with Akasha
-
Also, the
create()
function received a new argumentsnow = True
which changes the 2nd template.
Release V.3.1.0
I finally finished working on 3.0.0!!
- All features updated.
- Improved background brightness control.
- Added caching using pickle Pickle
- Added the ability to work with Akasha System Akasha
- Accelerated generation
- Added additional simplifying functions
- Documentation rewritten and completely written Documentation
- The volume of the module has been reduced. (Previously: 36MB now 5MB)
The first run may take longer to generate images since it downloads all the assets
- There is currently 1 profile template and 1 card template available, 2 card templates are already under development.
Support me on Patreon: https://www.patreon.com/deviantapi
Ask a question or suggest your design: https://t.me/enkacardchat
INFO: V_3_0_0
I have completed 70% of the work on the new version of EnkaCard 3.0.0!!
- Currently added: 1 card template and 1 profile template.
- Akasha support has been added, now the rating can be displayed on the card, information can be obtained separately and updated.
- Caching has also been added using Pickle, which will save builds and generate cards, which will speed up the code, and the settings are also flexible.
- Full customization of the profile template has been added; you can set your own background or character images on it.
- You can apply functions to the results that will simplify working with ID characters.
If you want to support me:
Patreon: https://www.patreon.com/deviantapi/membership
Have questions?
Telegram Support: https://t.me/+PE9w8aV7XslmMzcy
Release next weekend!!
NEW V.3.0.0
Last EnkaCard 2.0.0
Half a year ago, I decided to completely rewrite the EnkaCard code. But my Hard Disk died, on which I lost all the templates and 80% of the code rewritten. I decided to rewrite it with a new one, but due to the lack of PSD sources, I decided to close all the old templates and leave them in version 2.0.0, fixing many errors and changing the code slightly.
Changes:
- Removed feature:
enc()
- Removed variables from
ENC
class:
img
- Now you can pass a list of images tocharacter_art
.randomImg
- Now, if a list of images is sent, it selects randomly automatically.adapt
- If an image is transferred, adaptation is turned off automaticallysplashArt
- Automatically installs the costume splash, if available.
- Changed variables:
characterImgs
changed tocharacter_art
characterName
changed tocharacter_id
hide
changed tohide_uid
uid
added to classENC
- Feature
artifact
changedartifactType
toartifact_type
creat
removeuid
feature- Nnow the result comes in the form of BaseModel and there is no need to use json syntax.
To install this version, use:
pip install enkacard2
That's all, further updates of these templates and codes will be stopped, the next version of EnkaCard 3.0.0 is already in development and will contain new templates
1.0.7
Fix:
- Positioning of custom images.
- Profile template 2
New:
- creat got new arguments: background and card.
-- background - only for 4 templates set your background.
-- for only 4 card templates, pass the dictionary that cred() returns to ["1-4"]["cards"], ["5-8"]["cards"] - New overlay effect
- 4 template will return images without background.
- The ability to set your own background on 4 template
VERSION 2.2.6
Corrected:
- Position text: Template 1,Template 2,Template 3,Template 4.
- Bonus to physical attack.
- Adaptation of custom images.
- Display 8-9 characteristics.
- The position of the basic characteristics.
- Removed slow element.
- API updated to latest version
NEW:
- Support for custom images in the fourth template.
- Support for character selection by the fourth template.
- Profile and Creat return character IDs.
- ENC got custom user-agent capability
Also, a new 5 template is being developed.