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) {
|
if ($originalWidth <= $maxWidth && $originalHeight <= $maxHeight) {
|
||||||
$originalImage_webp = imagecreatetruecolor($originalWidth, $originalHeight);
|
$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);
|
imagewebp($originalImage_webp, $filePath, 90);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -609,6 +611,8 @@ function resizeImage($filePath, $maxWidth, $maxHeight) {
|
|||||||
|
|
||||||
// 新しい画像リソースを作成
|
// 新しい画像リソースを作成
|
||||||
$resizedImage = imagecreatetruecolor($newWidth, $newHeight);
|
$resizedImage = imagecreatetruecolor($newWidth, $newHeight);
|
||||||
|
imagealphablending($resizedImage, false);
|
||||||
|
imagesavealpha($resizedImage, true);
|
||||||
// 画像をリサイズ
|
// 画像をリサイズ
|
||||||
imagecopyresampled($resizedImage, $originalImage, 0, 0, 0, 0, $newWidth, $newHeight, $originalWidth, $originalHeight);
|
imagecopyresampled($resizedImage, $originalImage, 0, 0, 0, 0, $newWidth, $newHeight, $originalWidth, $originalHeight);
|
||||||
// リサイズされた画像を表示
|
// リサイズされた画像を表示
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
uwuzu
|
uwuzu
|
||||||
1.6.10
|
1.6.11
|
||||||
2025/12/31
|
2026/01/05
|
||||||
daichimarukana,putonfps
|
daichimarukana,putonfps
|
||||||
@@ -1,6 +1,10 @@
|
|||||||
## リリースノートだぜぇぇぇぇぇぇい!!!!!!!
|
## リリースノートだぜぇぇぇぇぇぇい!!!!!!!
|
||||||
ここにはuwuzuの更新情報を載せてくぜぇ~!(いやまてテンションおかしいだろ...)
|
ここにはuwuzuの更新情報を載せてくぜぇ~!(いやまてテンションおかしいだろ...)
|
||||||
|
|
||||||
|
## Version 1.6.11 (Hapuego)
|
||||||
|
2026/01/05
|
||||||
|
fix: 背景透過画像が投稿できない問題を修正しました!
|
||||||
|
|
||||||
## Version 1.6.10 (Hapuego)
|
## Version 1.6.10 (Hapuego)
|
||||||
2025/12/31
|
2025/12/31
|
||||||
fix: v1.6.8で更新されたはずのapi/usersが更新されていない問題を修正しました!
|
fix: v1.6.8で更新されたはずのapi/usersが更新されていない問題を修正しました!
|
||||||
|
|||||||
+4
-6
@@ -1,14 +1,12 @@
|
|||||||
{
|
{
|
||||||
"software": "uwuzu",
|
"software": "uwuzu",
|
||||||
"version": "1.6.10",
|
"version": "1.6.11",
|
||||||
"release_date": "2025/12/31",
|
"release_date": "2026/01/05",
|
||||||
"release_notes": "このアップデートには、APIに関する一部バグと更新忘れの修正が含まれます!\n詳細はリリースノートをご確認ください。",
|
"release_notes": "このアップデートには、背景透過画像が投稿できないバグの修正が含まれます!\n詳細はリリースノートをご確認ください。",
|
||||||
"notices": "アップデート前にデータのバックアップを行うことをおすすめします!",
|
"notices": "アップデート前にデータのバックアップを行うことをおすすめします!",
|
||||||
"files": {
|
"files": {
|
||||||
"overwrite": [
|
"overwrite": [
|
||||||
"/api/me/index.php",
|
"/function/function.php",
|
||||||
"/api/users/index.php",
|
|
||||||
"/api/auth.php",
|
|
||||||
"/server/uwuzuabout.txt",
|
"/server/uwuzuabout.txt",
|
||||||
"/server/uwuzuinfo.txt",
|
"/server/uwuzuinfo.txt",
|
||||||
"/server/uwuzurelease.txt"
|
"/server/uwuzurelease.txt"
|
||||||
|
|||||||
Reference in New Issue
Block a user