Skip to content
Snippets Groups Projects
Commit c8dcd251 authored by Daniel Neuwirth's avatar Daniel Neuwirth
Browse files

fix for ending1

parent b77e2a3b
Branches
Tags
No related merge requests found
......@@ -99,7 +99,6 @@ def enqueue_after_delete(context, resources):
private = package.private
package_id = package.id
first_resource = resources[0]
package_id = first_resource.get('package_id')
# without the background job
create_thumbnail_for_last_resource(resources, private, package_id)
......
......@@ -65,11 +65,11 @@ def create_thumbnail_from_file(file, package_id, private):
old_filepath = get_filepath_for_thumbnail(concatenate_filename(filename))
if os.path.exists(old_filepath):
os.remove(old_filepath)
convert_from_bytes(file_read,
dpi = 50,
#size=(width, None),
path_to_image = convert_from_bytes(file_read,
size=(width, None),
output_folder=directory,
output_file=filename,
single_file = True,
first_page=0,
last_page=0,
fmt='jpg'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment