Replies: 1 comment
-
Can you check your The url you mentionned is specified by: <meta property="og:title" content="{{ $pageTitle }}">
<meta property="og:description" content="{{ $pageDescription }}">
<meta property="og:image" content="{{ $imageUrl }}">
<meta property="og:url" content="{{ $pageUrl }}"> which comes from: $this->imageUrl = $this->photo->size_variants->getSmall()->url; Set from: public function getUrlAttribute(): string
{
$url = self::pathToUrl(
$this->short_path,
$this->storage_disk->value,
$this->type,
);
if ($url !== null) {
return $url;
}
//... Tracing to: public static function pathToUrl(string $short_path, string $storage_disk, SizeVariantType $type): string|null
{
$imageDisk = Storage::disk($storage_disk);
//...
return $imageDisk->url($short_path);
} Which comes down to: 'disks' => [
// Lychee uses the disk "images" to store the media files
'images' => [
'driver' => 'local',
'root' => env('LYCHEE_UPLOADS', public_path((string) env('LYCHEE_UPLOADS_DIR', 'uploads/'))),
'url' => env('LYCHEE_UPLOADS_URL', '') !== '' ? renv('LYCHEE_UPLOADS_URL')
: (renv('APP_URL', '') . renv_cond('APP_DIR') . '/' .
renv('LYCHEE_UPLOADS_DIR', 'uploads')),
//... |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Lychee version
v6.3.0
Which PHP version are you using?
PHP 8.4
Detailed description of the problem
Using docker deploy on Ubuntu 24 host, using port map 8091:80, Ubuntu host IP is 192.168.1.100, when visit http://192.168.1.100:8091, I can upload photos, but all photos are blur, open new windows can't show.
I dig into this issue, I found in page some localhost was used wrongly.
For example:
if I change the upper localhost to 192.168.1.100:8091, it's ok to visit.
http://192.168.1.100:8091/uploads/small/84/3c/be1c472a43d52f1166a32c20cdb8.jpg
Steps to reproduce the issue
No response
Diagnostics [REQUIRED]
No response
Browser & System [REQUIRED]
No response
Please confirm (incomplete submissions will not be addressed)
Beta Was this translation helpful? Give feedback.
All reactions