dev change
Test Workflow / test (push) Has been cancelled

This commit is contained in:
2026-04-21 00:36:22 +07:00
parent 4e0e953253
commit 6366cbc96b
@@ -28,7 +28,9 @@ public class ImageHashService {
public Map<String, Long> calculateHash(Path imagePath) throws IOException {
// File file = cloudStorageService.readFileFromStorageByPath(imagePath.toString());
File file = imagePath.toFile();
if (file == null) {
file = cloudStorageService.readFileFromStorageByPath(imagePath.toString());
}
PHash pHash = PerceptualHashHelper.INSTANCE.generateDCTPerceptualHash(file);