mirror of
https://github.com/Daichimarukana/uwuzu.git
synced 2026-06-04 19:14:41 +00:00
uwuzu v1.6.11 Hapuego
This commit is contained in:
@@ -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);
|
||||
// リサイズされた画像を表示
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
uwuzu
|
||||
1.6.10
|
||||
2025/12/31
|
||||
1.6.11
|
||||
2026/01/05
|
||||
daichimarukana,putonfps
|
||||
@@ -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が更新されていない問題を修正しました!
|
||||
|
||||
+4
-6
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user