Before giving the user options to choose one of the available Tag Libraries, and as a nice way to further minimize the potential for a user modifying their Stash with no backup of their prior state, it would be nice to give the user the option to save their current tags/tag images.
This would then show up in the library options as User Library (<datestamp>).
Some additional points
Saving the Tag Library might suck up a good bit of space
There's the potential that if a user has a large amount of tags and they already have a bunch of tag images, this feature will generate a pretty sizable library of JSON files (just based on a 1MB per tag sort of thing). Might be worth warning the user based on tag count (maybe a warning for anyone with more than 300 tags) before saving their current tag library.
Exception Handling
As a potential bug we might need to throw some code in here to handle an exception where the user's JSON library tag is an SVG and the script tries to convert that to an image.
Before giving the user options to choose one of the available Tag Libraries, and as a nice way to further minimize the potential for a user modifying their Stash with no backup of their prior state, it would be nice to give the user the option to save their current tags/tag images.
This would then show up in the library options as
User Library (<datestamp>)
.Some additional points
Saving the Tag Library might suck up a good bit of space There's the potential that if a user has a large amount of tags and they already have a bunch of tag images, this feature will generate a pretty sizable library of JSON files (just based on a 1MB per tag sort of thing). Might be worth warning the user based on tag count (maybe a warning for anyone with more than 300 tags) before saving their current tag library.
Exception Handling As a potential bug we might need to throw some code in here to handle an exception where the user's JSON library tag is an SVG and the script tries to convert that to an image.