mirror of
https://github.com/discourse/discourse-ai.git
synced 2025-02-16 16:34:45 +00:00
DEV: Reduce megapixel requirement for auto image captioning (#754)
This commit is contained in:
parent
23b88537d9
commit
867cd54556
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user