Correct a problem with thumbnails for PDFs. Not tested because I don't a
proper testing database for this. http://www.gramps-project.org/bugs/view.php?id=2433 * src/plugins/webreport/NarrativeWeb.py svn: r11941
This commit is contained in:
parent
c7edbc7cdd
commit
4e83f43a6c
@ -1344,7 +1344,9 @@ class MediaPage(BasePage):
|
|||||||
thmb_path, 320):
|
thmb_path, 320):
|
||||||
try:
|
try:
|
||||||
path = self.report.build_path('preview', photo.handle)
|
path = self.report.build_path('preview', photo.handle)
|
||||||
self.report.copy_file(thmb_path, os.path.join(path, photo.handle) + '.png')
|
npath = os.path.join(path, photo.handle) + '.png'
|
||||||
|
self.report.copy_file(thmb_path, npath)
|
||||||
|
path = npath
|
||||||
os.unlink(thmb_path)
|
os.unlink(thmb_path)
|
||||||
except IOError:
|
except IOError:
|
||||||
path = os.path.join('images', 'document.png')
|
path = os.path.join('images', 'document.png')
|
||||||
|
Loading…
Reference in New Issue
Block a user