feat: add additional cover art actions and settings (#1938)
* feat: add cover image auto cropping when oversized * feat: add smart cropping to ignore sections of constant colours in cover images * fix: description implied cbx files would be excluded from cover regeneration when they are not * feat: add options to bulk edit cover images in the library view * fix: resolve issues with batching requests and data validation for cover images
This commit is contained in:
@@ -432,6 +432,17 @@ export class BookService {
|
||||
return this.http.post<void>(`${this.url}/${bookId}/regenerate-cover`, {});
|
||||
}
|
||||
|
||||
regenerateCoversForBooks(bookIds: number[]): Observable<void> {
|
||||
return this.http.post<void>(`${this.url}/bulk-regenerate-covers`, { bookIds });
|
||||
}
|
||||
|
||||
bulkUploadCover(bookIds: number[], file: File): Observable<void> {
|
||||
const formData = new FormData();
|
||||
formData.append('file', file);
|
||||
formData.append('bookIds', bookIds.join(','));
|
||||
return this.http.post<void>(`${this.url}/bulk-upload-cover`, formData);
|
||||
}
|
||||
|
||||
|
||||
/*------------------ All the metadata related calls go here ------------------*/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user