Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
group-buy-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
ui
group-buy-ui
Commits
d1541dfb
Commit
d1541dfb
authored
Jun 29, 2022
by
郭志伟
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feat/changeImgRule' into feat/updateOssUploader
parents
ebf6b982
0270afcf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
9 deletions
+17
-9
img2Thumb.filter.js
src/filters/img2Thumb.filter.js
+17
-9
No files found.
src/filters/img2Thumb.filter.js
View file @
d1541dfb
...
@@ -2,12 +2,20 @@
...
@@ -2,12 +2,20 @@
* @Description: 根据商品来源匹配
* @Description: 根据商品来源匹配
* @Date: 2021-04-26 17:47:15
* @Date: 2021-04-26 17:47:15
* @LastEditors: gzw
* @LastEditors: gzw
* @LastEditTime: 202
1-07-19 15:12:34
* @LastEditTime: 202
2-06-28 17:41:02
*/
*/
// const aliRule =
// const aliRule =
// '?x-oss-process=image/resize,l_180,s_180,m_mfit/quality,q_70/interlace,1';
// '?x-oss-process=image/resize,l_180,s_180,m_mfit/quality,q_70/interlace,1';
const
rules
=
[
const
rules
=
[
{
name
:
'
ali
'
,
reg
:
'
img.lkbang
'
,
rule
:
[
`?x-oss-process=image/resize,l_220,s_220,m_mfit/quality,q_70/interlace,1`
,
// png 需要改尺寸
`?x-oss-process=image/resize,l_360,s_360,m_mfit/quality,q_70/interlace,1`
]
},
{
{
name
:
'
qiniu
'
,
name
:
'
qiniu
'
,
reg
:
'
kdspstatic
'
,
reg
:
'
kdspstatic
'
,
...
@@ -24,15 +32,15 @@ const rules = [
...
@@ -24,15 +32,15 @@ const rules = [
{
from
:
'
jfs
'
,
to
:
'
s220x220_jfs
'
},
{
from
:
'
jfs
'
,
to
:
'
s220x220_jfs
'
},
{
from
:
'
jfs
'
,
to
:
'
s360x360_jfs
'
}
{
from
:
'
jfs
'
,
to
:
'
s360x360_jfs
'
}
]
]
},
{
name
:
'
tencent
'
,
reg
:
'
img.lkbang
'
,
rule
:
[
'
?imageMogr2/thumbnail/220x220/quality/75/interlace/1
'
,
'
?imageMogr2/thumbnail/360x360/quality/75/interlace/1
'
]
}
}
// {
// name: 'tencent',
// reg: 'img.lkbang',
// rule: [
// '?imageMogr2/thumbnail/220x220/quality/75/interlace/1',
// '?imageMogr2/thumbnail/360x360/quality/75/interlace/1'
// ]
// }
];
];
export
default
function
Img2Thumb
(
url
,
level
=
0
)
{
export
default
function
Img2Thumb
(
url
,
level
=
0
)
{
...
...
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