Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
ai-box
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
青山
ai-box
Commits
e7b159c4
Commit
e7b159c4
authored
Nov 14, 2024
by
fisherdaddy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: 新增背景去除第三方工具BRIA-RMBG-2.0
parent
6a9748c1
Changes
10
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
60 additions
and
19 deletions
+60
-19
image-background-remover.png
public/assets/icon/image-background-remover.png
+0
-0
image-compressor.png
public/assets/icon/image-compressor.png
+0
-0
quotecard.png
public/assets/icon/quotecard.png
+0
-0
subtitle2image.png
public/assets/icon/subtitle2image.png
+0
-0
tools.json
src/locales/en/tools.json
+5
-1
tools.json
src/locales/ja/tools.json
+6
-2
tools.json
src/locales/ko/tools.json
+5
-1
tools.json
src/locales/zh/tools.json
+4
-0
Home.jsx
src/pages/Home.jsx
+1
-0
ImageTools.jsx
src/pages/ImageTools.jsx
+39
-15
No files found.
public/assets/icon/image-background-remover.png
0 → 100644
View file @
e7b159c4
165 KB
public/assets/icon/image-compressor.png
View replaced file @
6a9748c1
View file @
e7b159c4
179 KB
|
W:
|
H:
190 KB
|
W:
|
H:
2-up
Swipe
Onion skin
public/assets/icon/quotecard.png
View replaced file @
6a9748c1
View file @
e7b159c4
178 KB
|
W:
|
H:
174 KB
|
W:
|
H:
2-up
Swipe
Onion skin
public/assets/icon/subtitle2image.png
View replaced file @
6a9748c1
View file @
e7b159c4
191 KB
|
W:
|
H:
179 KB
|
W:
|
H:
2-up
Swipe
Onion skin
src/locales/en/tools.json
View file @
e7b159c4
...
@@ -185,5 +185,9 @@
...
@@ -185,5 +185,9 @@
},
},
"download"
:
"Download Image"
,
"download"
:
"Download Image"
,
"noImage"
:
"Please upload an image"
"noImage"
:
"Please upload an image"
}
},
"imageBackgroundRemover"
:
{
"title"
:
"Image Background Remover"
,
"description"
:
"Remove image background"
}
}
}
src/locales/ja/tools.json
View file @
e7b159c4
...
@@ -185,5 +185,9 @@
...
@@ -185,5 +185,9 @@
},
},
"download"
:
"画像をダウンロード"
,
"download"
:
"画像をダウンロード"
,
"noImage"
:
"画像をアップロードしてください"
"noImage"
:
"画像をアップロードしてください"
},
"imageBackgroundRemover"
:
{
"title"
:
"画像背景の削除"
,
"description"
:
"画像の背景を削除"
}
}
}
}
src/locales/ko/tools.json
View file @
e7b159c4
...
@@ -186,5 +186,9 @@
...
@@ -186,5 +186,9 @@
},
},
"download"
:
"이미지 다운로드"
,
"download"
:
"이미지 다운로드"
,
"noImage"
:
"이미지를 업로드하세요"
"noImage"
:
"이미지를 업로드하세요"
},
"imageBackgroundRemover"
:
{
"title"
:
"이미지 배경 제거"
,
"description"
:
"이미지 배경 제거"
}
}
}
}
src/locales/zh/tools.json
View file @
e7b159c4
...
@@ -184,5 +184,9 @@
...
@@ -184,5 +184,9 @@
},
},
"download"
:
"下载图片"
,
"download"
:
"下载图片"
,
"noImage"
:
"请上传图片"
"noImage"
:
"请上传图片"
},
"imageBackgroundRemover"
:
{
"title"
:
"图片背景去除"
,
"description"
:
"去除图片背景"
}
}
}
}
src/pages/Home.jsx
View file @
e7b159c4
...
@@ -10,6 +10,7 @@ const tools = [
...
@@ -10,6 +10,7 @@ const tools = [
{
id
:
'subtitleGenerator'
,
icon
:
'/assets/icon/subtitle2image.png'
,
path
:
'/subtitle-to-image'
},
{
id
:
'subtitleGenerator'
,
icon
:
'/assets/icon/subtitle2image.png'
,
path
:
'/subtitle-to-image'
},
{
id
:
'imageCompressor'
,
icon
:
'/assets/icon/image-compressor.png'
,
path
:
'/image-compressor'
},
{
id
:
'imageCompressor'
,
icon
:
'/assets/icon/image-compressor.png'
,
path
:
'/image-compressor'
},
{
id
:
'imageWatermark'
,
icon
:
'/assets/icon/image-watermark.png'
,
path
:
'/image-watermark'
},
{
id
:
'imageWatermark'
,
icon
:
'/assets/icon/image-watermark.png'
,
path
:
'/image-watermark'
},
{
id
:
'imageBackgroundRemover'
,
icon
:
'/assets/icon/image-background-remover.png'
,
path
:
'https://huggingface.co/spaces/briaai/BRIA-RMBG-2.0'
,
external
:
true
},
{
id
:
'latex2image'
,
icon
:
'/assets/icon/latex2image.png'
,
path
:
'/latex-to-image'
},
{
id
:
'latex2image'
,
icon
:
'/assets/icon/latex2image.png'
,
path
:
'/latex-to-image'
},
{
id
:
'jsonFormatter'
,
icon
:
'/assets/icon/json-format.png'
,
path
:
'/json-formatter'
},
{
id
:
'jsonFormatter'
,
icon
:
'/assets/icon/json-format.png'
,
path
:
'/json-formatter'
},
...
...
src/pages/ImageTools.jsx
View file @
e7b159c4
...
@@ -11,22 +11,15 @@ const tools = [
...
@@ -11,22 +11,15 @@ const tools = [
{
id
:
'subtitleGenerator'
,
icon
:
'/assets/icon/subtitle2image.png'
,
path
:
'/subtitle-to-image'
},
{
id
:
'subtitleGenerator'
,
icon
:
'/assets/icon/subtitle2image.png'
,
path
:
'/subtitle-to-image'
},
{
id
:
'imageCompressor'
,
icon
:
'/assets/icon/image-compressor.png'
,
path
:
'/image-compressor'
},
{
id
:
'imageCompressor'
,
icon
:
'/assets/icon/image-compressor.png'
,
path
:
'/image-compressor'
},
{
id
:
'imageWatermark'
,
icon
:
'/assets/icon/image-watermark.png'
,
path
:
'/image-watermark'
},
{
id
:
'imageWatermark'
,
icon
:
'/assets/icon/image-watermark.png'
,
path
:
'/image-watermark'
},
{
id
:
'imageBackgroundRemover'
,
icon
:
'/assets/icon/image-background-remover.png'
,
path
:
'https://huggingface.co/spaces/briaai/BRIA-RMBG-2.0'
,
external
:
true
},
];
];
const
ImageTools
=
()
=>
{
const
ImageTools
=
()
=>
{
const
{
t
}
=
useTranslation
();
const
{
t
}
=
useTranslation
();
return
(
const
renderToolLink
=
(
tool
)
=>
{
const
content
=
(
<>
<>
<
SEO
title=
{
t
(
'image-tools.title'
)
}
description=
{
t
(
'image-tools.description'
)
}
/>
<
main
>
<
section
className=
"tools-section"
>
<
div
className=
"tools-grid"
>
{
tools
.
map
(
tool
=>
(
<
Link
to=
{
tool
.
path
}
key=
{
tool
.
id
}
className=
"tool-card"
>
<
img
<
img
src=
{
tool
.
icon
}
src=
{
tool
.
icon
}
alt=
{
`${t(`
tools
.
$
{
tool
.
id
}.
title
`)} icon`
}
alt=
{
`${t(`
tools
.
$
{
tool
.
id
}.
title
`)} icon`
}
...
@@ -37,7 +30,38 @@ const ImageTools = () => {
...
@@ -37,7 +30,38 @@ const ImageTools = () => {
<
h3
className=
"tool-title"
>
{
t
(
`tools.${tool.id}.title`
)
}
</
h3
>
<
h3
className=
"tool-title"
>
{
t
(
`tools.${tool.id}.title`
)
}
</
h3
>
<
p
className=
"tool-description"
>
{
t
(
`tools.${tool.id}.description`
)
}
</
p
>
<
p
className=
"tool-description"
>
{
t
(
`tools.${tool.id}.description`
)
}
</
p
>
</
div
>
</
div
>
</>
);
return
tool
.
external
?
(
<
a
href=
{
tool
.
path
}
className=
"tool-card"
target=
"_blank"
rel=
"noopener noreferrer"
>
{
content
}
</
a
>
)
:
(
<
Link
to=
{
tool
.
path
}
className=
"tool-card"
>
{
content
}
</
Link
>
</
Link
>
);
};
return
(
<>
<
SEO
title=
{
t
(
'title'
)
}
description=
{
t
(
'slogan'
)
}
/>
<
main
>
<
section
className=
"tools-section"
>
<
div
className=
"tools-grid"
>
{
tools
.
map
(
tool
=>
(
<
React
.
Fragment
key=
{
tool
.
id
}
>
{
renderToolLink
(
tool
)
}
</
React
.
Fragment
>
))
}
))
}
</
div
>
</
div
>
</
section
>
</
section
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment