#2776: Thumbnail images in report output do not take referenced area into account (patch provided by lomo)
svn: r12851
This commit is contained in:
parent
26cd2a1ce8
commit
fe64fe1214
@ -847,8 +847,8 @@ class FamilyLinesReport(Report):
|
|||||||
if mediaMimeType[0:5] == "image":
|
if mediaMimeType[0:5] == "image":
|
||||||
imagePath = ThumbNails.get_thumbnail_path(
|
imagePath = ThumbNails.get_thumbnail_path(
|
||||||
Utils.media_path_full(self._db,
|
Utils.media_path_full(self._db,
|
||||||
media.get_path())
|
media.get_path()),
|
||||||
)
|
rectangle=mediaList[0].get_rectangle())
|
||||||
|
|
||||||
# put the label together and ouput this person
|
# put the label together and ouput this person
|
||||||
label = u""
|
label = u""
|
||||||
|
@ -346,7 +346,8 @@ class RelGraphReport(Report):
|
|||||||
if mediaMimeType[0:5] == "image":
|
if mediaMimeType[0:5] == "image":
|
||||||
imagePath = ThumbNails.get_thumbnail_path(
|
imagePath = ThumbNails.get_thumbnail_path(
|
||||||
Utils.media_path_full(self.database,
|
Utils.media_path_full(self.database,
|
||||||
media.get_path()))
|
media.get_path()),
|
||||||
|
rectangle=mediaList[0].get_rectangle())
|
||||||
# test if thumbnail actually exists in thumbs
|
# test if thumbnail actually exists in thumbs
|
||||||
# (import of data means media files might not be present
|
# (import of data means media files might not be present
|
||||||
imagePath = Utils.find_file(imagePath)
|
imagePath = Utils.find_file(imagePath)
|
||||||
|
Loading…
Reference in New Issue
Block a user