Repository navigation
Add option to export selected area - #4603
Open
leenattress wants to merge 2 commits into
Open
leenattress wants to merge 2 commits into
leenattress wants to merge 2 commits into
Conversation
Author
|
Manually tested the Linux AppImage (I'm on arch today) built by CI. Selected-area export works as expectedfrom your build |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds an Only export selected area option to the Export As Image dialog.
When enabled, Tiled exports only the currently selected map area instead of the full map. The crop calculation accounts for renderer scaling and centering so the saved image matches the visible selection.
How It Works
R) to select the tiles you want to export.When Nothing Is Selected
Why This Is Needed
For projects targeting constrained platforms such as the Game Boy (my personal use case), exported maps often need to stay within strict size limits.
A useful workflow is to design a large world as one connected map in Tiled: individual levels, rooms, and areas can be laid out together so their connections are visible and easy to verify. This is particularly helpful for tools such as GB Studio and NES studio, where seeing the whole world at once makes it easier to manage transitions and keep areas wired together correctly.
However, the game still needs each area exported separately. The new option allows selecting one area of the larger map and exporting only that selection as a PNG, without splitting the source world into many disconnected map files. This keeps the overview and editing workflow in Tiled while producing smaller images suitable for the target platform.
Testing
test_exportsuccessfully.