diff --git a/ckanext/odsh/pdf_to_thumbnail/thumbnail.py b/ckanext/odsh/pdf_to_thumbnail/thumbnail.py
index 6d653664927dc3733610ca30a3696d022f5f1207..5f87dbf986c569936a3ab452771376ce8a1360c2 100644
--- a/ckanext/odsh/pdf_to_thumbnail/thumbnail.py
+++ b/ckanext/odsh/pdf_to_thumbnail/thumbnail.py
@@ -69,7 +69,8 @@ def create_thumbnail_from_file(file, old_filename):
         if os.path.exists(old_filepath):
             os.remove(old_filepath)
     convert_from_bytes(file_read,
-                       size=(width, None),
+                       dpi = 50,
+                       #size=(width, None),
                        output_folder=directory,
                        output_file=filename,
                        single_file=True,
@@ -81,7 +82,11 @@ def create_thumbnail_from_file(file, old_filename):
 
 
 def create_thumbnail_from_url(resource, old_filename):
-    return False, None, None
+    resource_url = resource.get('url')
+    response = urllib2.urlopen(resource_url)
+    if response.code == 200:
+        file = response.read()
+    return False, None
 '''
     #  Requests does not work on a server but on a local test enviroment.
     #  With the given configuration of a wsgi server and apache it did not work