Add phash generation and dupe checking (#1158)

This commit is contained in:
InfiniteTF
2021-04-12 01:04:40 +02:00
committed by GitHub
parent a2582047ca
commit c38660d209
70 changed files with 4342 additions and 214 deletions

View File

@@ -219,10 +219,24 @@ export const SceneFileInfoPanel: React.FC<ISceneFileInfoPanelProps> = (
);
}
function renderPhash() {
if (props.scene.phash) {
return (
<div className="row">
<abbr className="col-4" title="Perceptual hash">
PHash
</abbr>
<TruncatedText className="col-8" text={props.scene.phash} />
</div>
);
}
}
return (
<div className="container scene-file-info">
{renderOSHash()}
{renderChecksum()}
{renderPhash()}
{renderPath()}
{renderStream()}
{renderFileSize()}