I understand you'd like a [rotate:degrees] tag in the PhotoshopToSpine script to help optimize sprites for atlas packing by pre-rotating them.
This is an interesting idea for optimization! However, implementing rotation in the PhotoshopToSpine script would be quite complex for a few reasons:
Technical challenges:
Photoshop scripting limitations - Photoshop's scripting capabilities are relatively poor and finding optimal rotations would be very slow to execute in the script itself.
UV coordinate adjustments - When images are rotated at arbitrary angles (other than 0, 90, 180, 270 degrees), Spine would need to adjust mesh UVs to work correctly with the rotated images. This is complex to implement.
Image quality concerns - Rotations other than 90-degree increments require pixel interpolation/filtering, which can affect image quality since the pixels no longer align with the output image grid.
Better alternatives:
Spine's texture packer already includes polygon packing with automatic rotation at 0, 90, 180, and 270 degrees. These rotations preserve image quality while optimizing atlas space. You might want to explore this feature first to see if it meets your needs.
If you specifically need custom angle rotations for optimization, this would be better suited as a separate tool that runs after the Photoshop script exports but before importing into Spine - it would rotate the images and update the JSON accordingly.