Skip to content

Commit

Permalink
fix(characters): correct use of masterlist image dimension target set…
Browse files Browse the repository at this point in the history
…ting (#1182)
  • Loading branch information
itinerare authored Jan 8, 2025
1 parent 9dc295e commit d4ca0b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Services/CharacterManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ public function processImage($characterImage) {
if (config('lorekeeper.settings.masterlist_image_dimension') != 0) {
if ($image->width() > $image->height()) {
// Landscape
if (config('lorekeeper.settings.masterlist_image_dimension_target') == 'short') {
if (config('lorekeeper.settings.masterlist_image_dimension_target') == 'shorter') {
$image->resize(null, config('lorekeeper.settings.masterlist_image_dimension'), function ($constraint) {
$constraint->aspectRatio();
$constraint->upsize();
Expand All @@ -268,7 +268,7 @@ public function processImage($characterImage) {
}
} else {
// Portrait
if (config('lorekeeper.settings.masterlist_image_dimension_target') == 'short') {
if (config('lorekeeper.settings.masterlist_image_dimension_target') == 'shorter') {
$image->resize(config('lorekeeper.settings.masterlist_image_dimension'), null, function ($constraint) {
$constraint->aspectRatio();
$constraint->upsize();
Expand Down

0 comments on commit d4ca0b1

Please sign in to comment.