This commit is contained in:
Tomas Groth 2014-09-10 22:41:36 +01:00
parent cf351a7af9
commit 5dc722e017
2 changed files with 3 additions and 2 deletions

View File

@ -590,7 +590,8 @@ class ImageMediaItem(MediaManagerItem):
# Continue with the existing images.
for filename in images_file_names:
name = os.path.split(filename)[1]
service_item.add_from_image(filename, ImageSource.ImagePlugin, background, os.path.join(self.service_path, name))
service_item.add_from_image(filename, ImageSource.ImagePlugin, background,
os.path.join(self.service_path, name))
return True
def check_group_exists(self, new_group):

View File

@ -407,7 +407,7 @@ class HttpRouter(RegistryProperties):
'thumbnails/' + full_path))
if os.path.exists(full_path):
ext, content_type = self.get_content_type(full_path)
image = self.image_manager.get_image(full_path, ImageSource.ImagePlugin , width, height)
image = self.image_manager.get_image(full_path, ImageSource.ImagePlugin, width, height)
content = image_to_byte(image, False)
if len(content) == 0:
return self.do_not_found()