1. Image Super-Resolution
npm install @sbs-plugin/vue3-image-process将低分辨率图片智能放大,提升清晰度和细节表现
2. Image Expansion
在不破坏原图风格的前提下,自动扩展图像边界或指定区域,实现画面延伸。
3. AI Matting
智能识别图片内容并抠图
4. AI Object Removal
轻松擦除图片中不需要的元素
1. Install dependencies
``bash`
pnpm i @sbs-plugin/vue3-image-process
2. Getting Started
Import the plugin and register it in your project's entry file (e.g., main.js or main.ts)
`bash
import ImageProcessing from '@sbs-plugin/vue3-image-process';
import '@sbs-plugin/vue3-image-process/dist/index.css';
app.use(ImageProcessing, {
theme: {
primaryColor: '#625ae1', // Customize default theme color
},
token: 'xxxx' // Example configuration item, adjust according to actual needs
});
`
3. Usage in Components
`bash``
:src="xxxxx"
@update:visible="xxxxxx"
/>
<[[隐私内容 - 已加密]]
:visible="xxxxxx"
:src="xxxxxxx"
@update:visible="xxxxxxxx"
/>
:src="xxxxxxx"
@update:visible="xxxxxxxx"
/>
:src="xxxxxxx"
@update:visible="xxxxxxxx"
/>