mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 04:44:37 +03:00
Add SVG studio image support, and studio image caching (#418)
* Support SVGs for studio images and add ETAGs * Add SVG to studio image input * Update content sniffing
This commit is contained in:
@@ -12,6 +12,7 @@ interface IProps {
|
||||
onAutoTag?: () => void;
|
||||
onImageChange: (event: React.FormEvent<HTMLInputElement>) => void;
|
||||
onBackImageChange?: (event: React.FormEvent<HTMLInputElement>) => void;
|
||||
acceptSVG?: boolean;
|
||||
}
|
||||
|
||||
export const DetailsEditNavbar: React.FC<IProps> = (props: IProps) => {
|
||||
@@ -113,6 +114,7 @@ export const DetailsEditNavbar: React.FC<IProps> = (props: IProps) => {
|
||||
isEditing={props.isEditing}
|
||||
text={props.onBackImageChange ? "Front image..." : undefined}
|
||||
onImageChange={props.onImageChange}
|
||||
acceptSVG={props.acceptSVG ?? false}
|
||||
/>
|
||||
{renderBackImageInput()}
|
||||
{renderAutoTagButton()}
|
||||
|
||||
Reference in New Issue
Block a user