mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-01 07:43:15 +02:00
Get rid of ImageMagick from the db backend
This commit is contained in:
parent
65b30cdad0
commit
bf7effcfe3
1 changed files with 2 additions and 2 deletions
|
|
@ -30,7 +30,7 @@
|
|||
is_case_sensitive, samefile, hardlink_file, ascii_filename,
|
||||
WindowsAtomicFolderMove, atomic_rename, remove_dir_if_empty,
|
||||
copytree_using_links, copyfile_using_links)
|
||||
from calibre.utils.magick.draw import save_cover_data_to
|
||||
from calibre.utils.img import save_cover_data_to
|
||||
from calibre.utils.formatter_functions import load_user_template_functions
|
||||
from calibre.db.tables import (OneToOneTable, ManyToOneTable, ManyToManyTable,
|
||||
SizeTable, FormatsTable, AuthorsTable, IdentifiersTable, PathTable,
|
||||
|
|
@ -1376,7 +1376,7 @@ def set_cover(self, book_id, path, data, no_processing=False):
|
|||
os.remove(path)
|
||||
else:
|
||||
if no_processing:
|
||||
with open(path, 'wb') as f:
|
||||
with lopen(path, 'wb') as f:
|
||||
f.write(data)
|
||||
else:
|
||||
try:
|
||||
|
|
|
|||
Loading…
Reference in a new issue