From d3a40d0285a7fa71044b1a0adf502a39352102c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=A0=E3=81=84=E3=81=A1=E3=81=BE=E3=82=8B?= <98202777+Daichimarukana@users.noreply.github.com> Date: Mon, 5 Jan 2026 12:28:17 +0900 Subject: [PATCH] uwuzu v1.6.11 Hapuego --- function/function.php | 6 +++++- server/uwuzuinfo.txt | 4 ++-- server/uwuzurelease.txt | 4 ++++ update.json | 10 ++++------ 4 files changed, 15 insertions(+), 9 deletions(-) diff --git a/function/function.php b/function/function.php index 4468917..c7e9dc6 100644 --- a/function/function.php +++ b/function/function.php @@ -589,8 +589,10 @@ function resizeImage($filePath, $maxWidth, $maxHeight) { if ($originalWidth <= $maxWidth && $originalHeight <= $maxHeight) { $originalImage_webp = imagecreatetruecolor($originalWidth, $originalHeight); - imagecopyresampled($originalImage_webp, $originalImage, 0, 0, 0, 0, $originalWidth, $originalHeight, $originalWidth, $originalHeight); + imagealphablending($originalImage_webp, false); + imagesavealpha($originalImage_webp, true); + imagecopyresampled($originalImage_webp, $originalImage, 0, 0, 0, 0, $originalWidth, $originalHeight, $originalWidth, $originalHeight); imagewebp($originalImage_webp, $filePath, 90); return true; } @@ -609,6 +611,8 @@ function resizeImage($filePath, $maxWidth, $maxHeight) { // 新しい画像リソースを作成 $resizedImage = imagecreatetruecolor($newWidth, $newHeight); + imagealphablending($resizedImage, false); + imagesavealpha($resizedImage, true); // 画像をリサイズ imagecopyresampled($resizedImage, $originalImage, 0, 0, 0, 0, $newWidth, $newHeight, $originalWidth, $originalHeight); // リサイズされた画像を表示 diff --git a/server/uwuzuinfo.txt b/server/uwuzuinfo.txt index bf14c68..f24546d 100644 --- a/server/uwuzuinfo.txt +++ b/server/uwuzuinfo.txt @@ -1,4 +1,4 @@ uwuzu -1.6.10 -2025/12/31 +1.6.11 +2026/01/05 daichimarukana,putonfps \ No newline at end of file diff --git a/server/uwuzurelease.txt b/server/uwuzurelease.txt index 8d094fe..e191f1a 100644 --- a/server/uwuzurelease.txt +++ b/server/uwuzurelease.txt @@ -1,6 +1,10 @@ ## リリースノートだぜぇぇぇぇぇぇい!!!!!!! ここにはuwuzuの更新情報を載せてくぜぇ~!(いやまてテンションおかしいだろ...) +## Version 1.6.11 (Hapuego) +2026/01/05 +fix: 背景透過画像が投稿できない問題を修正しました! + ## Version 1.6.10 (Hapuego) 2025/12/31 fix: v1.6.8で更新されたはずのapi/usersが更新されていない問題を修正しました! diff --git a/update.json b/update.json index c5c2ba5..cabb1bf 100644 --- a/update.json +++ b/update.json @@ -1,14 +1,12 @@ { "software": "uwuzu", - "version": "1.6.10", - "release_date": "2025/12/31", - "release_notes": "このアップデートには、APIに関する一部バグと更新忘れの修正が含まれます!\n詳細はリリースノートをご確認ください。", + "version": "1.6.11", + "release_date": "2026/01/05", + "release_notes": "このアップデートには、背景透過画像が投稿できないバグの修正が含まれます!\n詳細はリリースノートをご確認ください。", "notices": "アップデート前にデータのバックアップを行うことをおすすめします!", "files": { "overwrite": [ - "/api/me/index.php", - "/api/users/index.php", - "/api/auth.php", + "/function/function.php", "/server/uwuzuabout.txt", "/server/uwuzuinfo.txt", "/server/uwuzurelease.txt"