mirror of
https://github.com/qwertyforce/scenery.git
synced 2025-07-12 23:28:20 +00:00
Update image_ops.ts
This commit is contained in:
parent
183e57771a
commit
a057b92072
@ -269,7 +269,7 @@ async function import_image(image_buffer: Buffer, tags: string[] = [], source_ur
|
||||
await fs.writeFile(`${PATH_TO_THUMBNAILS}/${new_image_id}.jpg`, thumbnail_buffer, 'binary')
|
||||
if(!bypass_checks){
|
||||
const res = await calculate_all_image_features(new_image_id, image_buffer)
|
||||
if (!res) {
|
||||
if (res.length===0) {
|
||||
return "Can't calculate_all_image_features"
|
||||
}
|
||||
console.log(res)
|
||||
@ -347,4 +347,4 @@ export default {
|
||||
color_get_similar_images_by_id,
|
||||
calculate_all_image_features,
|
||||
delete_all_image_features
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user