1
0
Fork 0

allow selecting the same file repeatedly, parse image size

This commit is contained in:
Sean Sube 2023-07-19 22:49:07 -05:00
parent 079d4aa602
commit 93acc24be4
Signed by: ssube
GPG Key ID: 3EED7B957D362AF1
1 changed files with 8 additions and 1 deletions

View File

@ -97,6 +97,9 @@ export function Profiles(props: ProfilesProps) {
});
}
}}
onClick={(event) => {
event.currentTarget.value = '';
}}
/>
</Button>
</Stack>
@ -228,7 +231,11 @@ export function parseAutoComment(comment: string): Partial<Txt2ImgParams> {
params.seed = parseInt(value, 10);
break;
case 'size':
// TODO: parse size
{
const [width, height] = value.split('x');
params.height = parseInt(height, 10);
params.width = parseInt(width, 10);
}
break;
default:
// unknown param