skip processing non jpg images during upload step
This commit is contained in:
parent
4035f5bfd9
commit
96875eaa76
1 changed files with 7 additions and 0 deletions
|
@ -268,6 +268,13 @@ class ClipServiceImpl {
|
|||
);
|
||||
return;
|
||||
}
|
||||
const extension = enteFile.metadata.title.split('.').pop();
|
||||
if (!extension || !['jpg', 'jpeg'].includes(extension)) {
|
||||
addLogLine(
|
||||
`skipping non jpg file for clip embedding extraction file: ${enteFile.metadata.title} fileID: ${enteFile.id}`
|
||||
);
|
||||
return;
|
||||
}
|
||||
try {
|
||||
await this.liveEmbeddingExtractionQueue.add(async () => {
|
||||
const embedding = await this.extractLocalFileClipImageEmbedding(
|
||||
|
|
Loading…
Add table
Reference in a new issue