• Editor
  • how Export 1 atlas as jpg and 1 as png?

Related Discussions
...

Hi there, longtime lurker here :-)
I hope someone can help me.
I'm animating a big background image with little bits and pieces and I would like to export the large background image as jpg to keep it small, but then export the animated pieces as a regular png atlas.
How would I go about that?

Thanks :-)
mooses

Hi mooses, welcome to Spine forum 😃

Separating the skeleton into the background and the animated pieces so that you can choose the Atlas per Skeleton option at the pack section of the export settings:

Also, you can uncheck the Export checkbox on one of the skeletons so that export only the skeleton which has Export is checked.

However, if you export them frequently, this approach may be tedious. So it is probably easiest to write a script and export or pack them via command line interface. There is a Save button at the bottom left corner of the Export window and Texture Packer Settings window where you can save your settings as a JSON file, which can then be read for exporting by scripts. So you can save the settings for exporting in JPEG format and the settings for exporting in PNG format as JSON files, respectively, and then load them to pack the texture atlas. However, you cannot specify which skeleton in the project to export, so you will have to export both skeletons every time, which will create extra files, but it should be more efficient than exporting them manually. For more information, please see this page in the User Guide:
Command line interface - Spine User Guide

If my explanation is not clear or you have additional questions, don't hesitate to ask!

Thank you so much for the detailed explanation! That was super clear so I have no questions so far :-)

I'm glad to hear that, thank you for getting back to us!