This package contains art, text, or software code produced using generative AI.
This module was developed using an iterative, human-led design process supported by Generative AI.

A FoundryVTT module that solves one of the most annoying issues in Foundry: rotating a scene 90 degrees after you've already set it up.
Features
- One-Click Rotation: Adds a "Rotate Scene" button to the Scene Configuration header.
- Complete Data Alignment: Automatically rotates and realigns:
- Walls, Lights, Sounds, Notes
- Tokens, Tiles, Drawings
- Templates
- Smart Image Processing:
- Automatically rotates the Background and Foreground images.
- Saves rotated copies in a
rotated-imagessubfolder next to your original image. - Smart Naming: Uses
[OriginalName]_rotation[Degrees].jpg. - Efficiency: If a rotated version of the image already exists, it reuses it instantly instead of generating a new one.
Installation
- Place the
geanos-scene-rotationfolder into yourData/modules/directory. - Restart Foundry VTT.
- Enable the module in Manage Modules.
Alternatively:
Enter the Manifest URL https://github.com/GeanoFee/geanos-scene-rotation/releases/latest/download/module.json within Foundry's "Install Module" window.
Usage
- Open the Configuration window for any Scene.
- Click the Rotate Scene button located in the window header.
- Choose 90° Clockwise or 90° Counter-Clockwise.
- Wait for the notification confirming the rotation is complete.
How it works
When you rotate a scene, the module:
- Swaps the Scene Width and Height.
- Calculates the new coordinates for all embedded objects based on a 90-degree transformation matrix.
- Checks if a rotated version of the background image exists in
[OriginalPath]/rotated-images/.- If yes: It assigns that image to the scene.
- If no: It loads the image into an off-screen canvas, rotates it, saves it as a high-quality JPEG, uploads it, and then assigns it.
Compatibility
Verified for Foundry VTT v12. Should work on v10+.