How do I save images from C2?

0 favourites
  • 1 posts
From the Asset Store
500 monsters and creatures images for card games - Set 1
  • I have images on local. I can load them to sprite.

    I need to to save them all to another place.

    Maybe in one folder. Maybe to compress them and save like one file data (zip or smth. else).

    What variant could you reccomend? My decision is below but it's not so good as I want.

    ----- MY WAY (very bad)

    Use plugin "jsZip" by Noncentz705

    Use behavior "Extract sprite to base64 string" by Pode

    1. Sprite -> Load image from URL (FileChooser.FileURLAt(0))
    2. Sprite.ExtractImage.currentImage
    3. jsZip.AddImage ...
    [/code:2donmpr5]
    
    What is bad? Step 2!
    
    Step 2 is long. Image is not big, but conversion takes several seconds. And all program is in idle (fps 0 and so on)! Harder image - harder base64 - more time - more weight.
    You can try. In attachment you can find 2 different images jpg 53kb. One is mtg card, another is excel icon.
    After zipping mtg card picture in archive will be too big (it is a result of step 2) - 53 Kb image converts to 300 Kb image. Not so good.. But 53 kb of icon converts great to 48 kb..
    
    Take file from here: http://rghost.ru/6J6Xk7jMK
    Sorry, it's in russian. just click on BLACK button 'Скачать'
  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)