mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-11 18:56:42 +02:00
fix(housekeeping): set default sizes value + ignore illegal IFD size error to proceed with script
This commit is contained in:
parent
3bfcce3751
commit
f21ca57603
2 changed files with 5 additions and 1 deletions
|
|
@ -217,7 +217,10 @@ class SettingsController extends BaseController
|
|||
} elseif (str_starts_with($image->file_path, 'persons')) {
|
||||
$image->sizes = config('Images')
|
||||
->personAvatarSizes;
|
||||
} else {
|
||||
$image->sizes = [];
|
||||
}
|
||||
|
||||
$image->setFile(new File(media_path($image->file_path)));
|
||||
|
||||
(new MediaModel('image'))->updateMedia($image);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue