DEV: Reduce megapixel requirement for auto image captioning (#754)

This commit is contained in:
Keegan George 2024-08-14 11:26:56 -07:00 committed by GitHub
parent 23b88537d9
commit 867cd54556
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -84,10 +84,10 @@ export default apiInitializer("1.25.0", (api) => {
}
);
// Checks if image is small (≤ 0.4 MP)
// Checks if image is small (≤ 0.1 MP)
function isSmallImage(width, height) {
const megapixels = (width * height) / 1000000;
return megapixels <= 0.4;
return megapixels <= 0.1;
}
function needsImprovedCaption(caption) {