mirror of
https://github.com/pelican-dev/panel.git
synced 2026-07-16 04:03:50 +03:00
[PR #1993] [MERGED] Change images from being stored in base64 to files #1692
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/pelican-dev/panel/pull/1993
Author: @notAreYouScared
Created: 12/13/2025
Status: ✅ Merged
Merged: 12/16/2025
Merged by: @notAreYouScared
Base:
main← Head:charles/image-refactor📝 Commits (10+)
c90d13edisaster response solution v0.18c7ad71rabbit updates5ae8c8fUpdate EggImporterServiceea56809just use the ext from the base64 decode1e49e28gif could exist in the table...4b56094fix svg files in migratione66ab8aMerge branch 'main' into charles/image-refactord63f84bI'm 110% over it.971db91use Storage facade2e14128make own action for deleting server icon📊 Changes
10 files changed (+566 additions, -313 deletions)
View changed files
📝
app/Filament/Admin/Resources/Eggs/Pages/EditEgg.php(+79 -61)📝
app/Filament/Admin/Resources/Servers/Pages/EditServer.php(+127 -123)➕
app/Filament/Components/Actions/DeleteServerIcon.php(+50 -0)📝
app/Filament/Pages/Auth/EditProfile.php(+1 -0)📝
app/Filament/Server/Pages/Settings.php(+126 -123)📝
app/Models/Egg.php(+29 -2)📝
app/Models/Server.php(+29 -2)📝
app/Services/Eggs/Sharing/EggExporterService.php(+21 -1)📝
app/Services/Eggs/Sharing/EggImporterService.php(+31 -1)➕
database/migrations/2025_12_13_000000_convert_base64_images_to_files.php(+73 -0)📄 Description
Changes the logic and saving of image/icons to saving them as physical files to reduce the payload side of livewire update calls...
For egg images, they're converted to base64 at egg export. and converted to files at egg import.
There is a migration that should convert existing icons/images to physical files before nuking the column... If it fails... sorry upload it again. Its also a one way migration.
Fixes https://github.com/pelican-dev/panel/issues/1948
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.