summaryrefslogtreecommitdiff
path: root/app/Report/ReportParserGenerate.php
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@gmail.com>2017-07-12 22:48:51 +0100
committerGreg Roach <fisharebest@gmail.com>2017-07-12 23:11:38 +0100
commitcdf416fba6b8c5dceb8de09cc099b16980991d83 (patch)
treec354c9e331e83353e34cdfe6dc0a51ce67d9b562 /app/Report/ReportParserGenerate.php
parent767f11f92adf74fa4bfc1fbc4b9a296b3ce1e513 (diff)
downloadwebtrees-cdf416fba6b8c5dceb8de09cc099b16980991d83.tar.gz
webtrees-cdf416fba6b8c5dceb8de09cc099b16980991d83.tar.bz2
webtrees-cdf416fba6b8c5dceb8de09cc099b16980991d83.zip
Report images
Diffstat (limited to 'app/Report/ReportParserGenerate.php')
-rw-r--r--app/Report/ReportParserGenerate.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/app/Report/ReportParserGenerate.php b/app/Report/ReportParserGenerate.php
index ff7d396ac1..4380dd53f1 100644
--- a/app/Report/ReportParserGenerate.php
+++ b/app/Report/ReportParserGenerate.php
@@ -1616,7 +1616,7 @@ class ReportParserGenerate extends ReportParserBase {
$person = Individual::getInstance($id, $WT_TREE);
$mediaobject = $person->findHighlightedMedia();
if ($mediaobject) {
- $attributes = $mediaobject->getImageAttributes('thumb');
+ $attributes = $mediaobject->getImageAttributes();
if (in_array(
$attributes['ext'],
[
@@ -1637,7 +1637,7 @@ class ReportParserGenerate extends ReportParserBase {
'WBMP',
'XBM',
]
- ) && $mediaobject->canShow() && $mediaobject->fileExists('thumb')
+ ) && $mediaobject->canShow() && $mediaobject->fileExists('main')
) {
if ($width > 0 && $height == 0) {
$perc = $width / $attributes['adjW'];
@@ -1716,7 +1716,8 @@ class ReportParserGenerate extends ReportParserBase {
$match = [];
if (preg_match("/\d OBJE @(.+)@/", $this->gedrec, $match)) {
$mediaobject = Media::getInstance($match[1], $WT_TREE);
- $attributes = $mediaobject->getImageAttributes('thumb');
+ $attributes = $mediaobject->getImageAttributes();
+
if (in_array(
$attributes['ext'],
[
@@ -1737,7 +1738,7 @@ class ReportParserGenerate extends ReportParserBase {
'WBMP',
'XBM',
]
- ) && $mediaobject->canShow() && $mediaobject->fileExists('thumb')
+ ) && $mediaobject->canShow() && $mediaobject->fileExists('main')
) {
if ($width > 0 && $height == 0) {
$perc = $width / $attributes['adjW'];