From bf7effcfe32456f661a69eda613274711fc10304 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 4 May 2016 17:43:38 +0530 Subject: [PATCH] Get rid of ImageMagick from the db backend --- src/calibre/db/backend.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/calibre/db/backend.py b/src/calibre/db/backend.py index b42537116d..d75bc17d7d 100644 --- a/src/calibre/db/backend.py +++ b/src/calibre/db/backend.py @@ -30,7 +30,7 @@ from calibre.utils.filenames import ( 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 @@ class DB(object): os.remove(path) else: if no_processing: - with open(path, 'wb') as f: + with lopen(path, 'wb') as f: f.write(data) else: try: