Skip to content

Releases: DEViantUA/EnkaCard

release_v_3_3_7

30 Apr 00:13
504d64c
Compare
Choose a tag to compare

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

Release V.3.3.6

26 Apr 19:33
504d64c
Compare
Choose a tag to compare

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()

Dokumentation API


10000052_26_04_2024 22_33

Release V.3.2.9

29 Feb 18:36
02a7256
Compare
Choose a tag to compare

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

23 Dec 16:50
4c4d205
Compare
Choose a tag to compare

New:

  • New feature added: Tools

    • With Tools you can update assets enkanetwork.py,
    • Check images.
    • Save images to the server.
  • Added 2 new templates:

    • One for cards
    • One for profile
  • Fixed some bugs with Akasha

  • Also, the create() function received a new argument snow = True which changes the 2nd template.

teample_2 png (1)

Release V.3.1.0

14 Dec 15:09
0d8d5ee
Compare
Choose a tag to compare

I finally finished working on 3.0.0!!

  1. All features updated.
  2. Improved background brightness control.
  3. Added caching using pickle Pickle
  4. Added the ability to work with Akasha System Akasha
  5. Accelerated generation
  6. Added additional simplifying functions
  7. Documentation rewritten and completely written Documentation
  8. 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

BannerCard3

INFO: V_3_0_0

03 Dec 23:04
9c37d6f
Compare
Choose a tag to compare

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

10000052_04_12_2023 00_36
10000027_04_12_2023 00_36
profile_04_12_2023 00_33
profile_04_12_2023 00_34

Release next weekend!!

NEW V.3.0.0

27 Nov 00:01
9c37d6f
Compare
Choose a tag to compare

V.3.0.0 ENKA CARD!!!

ALREADY UNDER DEVELOPMENT!! ALL THE CODE WILL BE CHANGED, VARIABLES AND CALLING METHODS WILL BE CHANGED, AND A NEW TEMPLATE WILL BE ADDED!
BannerCard

Last EnkaCard 2.0.0

28 Nov 18:49
9c37d6f
Compare
Choose a tag to compare

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:

  1. Removed feature: enc()
  2. Removed variables from ENC class:
  • img - Now you can pass a list of images to character_art.
  • randomImg - Now, if a list of images is sent, it selects randomly automatically.
  • adapt - If an image is transferred, adaptation is turned off automatically
  • splashArt - Automatically installs the costume splash, if available.
  1. Changed variables:
  • characterImgs changed to character_art
  • characterName changed to character_id
  • hide changed to hide_uid
  1. uid added to class ENC
  2. Feature artifact changed artifactType to artifact_type
  3. creat remove uid feature
  4. 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

21 Feb 18:05
37ec27e
Compare
Choose a tag to compare

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

09 Feb 19:45
cfc35f3
Compare
Choose a tag to compare

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.