Skip to content

Conversation

Rylern
Copy link
Contributor

@Rylern Rylern commented May 5, 2025

When executing a QuPath script from the command line, there's a -s or --save parameter to "Request that data files are updated for each image in the project". In effect, when this parameter is set, entry.saveImageData(imageData) is called at the end of each execution of the script.

Some scripts modify the metadata of the image (see https://forum.image.sc/t/specifying-pixel-size-using-the-command-line/111972). In those situations, changes are only saved if getProject().syncChanges() is called, which is not the case with the -s parameter. This PR fixes that.

@petebankhead petebankhead merged commit 3926cfe into qupath:main May 5, 2025
3 checks passed
@Rylern Rylern deleted the save-project branch May 5, 2025 11:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants