Skip to content

Problems in rename - encode_images_and_json.py#2

Open
Dragost37 wants to merge 1 commit intoimmersal:mainfrom
Dragost37:patch-1
Open

Problems in rename - encode_images_and_json.py#2
Dragost37 wants to merge 1 commit intoimmersal:mainfrom
Dragost37:patch-1

Conversation

@Dragost37
Copy link

Originally, the script only renamed image files based on metadata from their JSON files, leaving the JSON files unchanged. This caused issues when tools (localize test script) expected filenames to match. The updated version fixes that by renaming both the image and its JSON together. It also adds checks to avoid errors if files are missing or already renamed, making the script safer to run multiple times without breaking.

This solved my problem might be useful to you, might not. You decide. :)

Originally, the script only renamed image files based on metadata from their JSON files, leaving the JSON files unchanged. This caused issues when tools (localize test script) expected filenames to match. The updated version fixes that by renaming both the image and its JSON together. It also adds checks to avoid errors if files are missing or already renamed, making the script safer to run multiple times without breaking.
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.

1 participant