Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
solo-1
Project overview
Project overview
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
Administrator
solo-1
Commits
71f98fb8
Unverified
Commit
71f98fb8
authored
Jul 13, 2019
by
Liang Ding
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🎨
提升文章首图精度
parent
f32ed28d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
src/main/java/org/b3log/solo/model/Article.java
src/main/java/org/b3log/solo/model/Article.java
+2
-2
src/main/java/org/b3log/solo/util/Images.java
src/main/java/org/b3log/solo/util/Images.java
+1
-1
No files found.
src/main/java/org/b3log/solo/model/Article.java
View file @
71f98fb8
...
@@ -186,12 +186,12 @@ public final class Article {
...
@@ -186,12 +186,12 @@ public final class Article {
/**
/**
* Width of article first image.
* Width of article first image.
*/
*/
public
static
final
int
ARTICLE_THUMB_IMG_WIDTH
=
768
;
public
static
final
int
ARTICLE_THUMB_IMG_WIDTH
=
1280
;
/**
/**
* Height of article first image.
* Height of article first image.
*/
*/
public
static
final
int
ARTICLE_THUMB_IMG_HEIGHT
=
432
;
public
static
final
int
ARTICLE_THUMB_IMG_HEIGHT
=
720
;
/**
/**
* Private constructor.
* Private constructor.
...
...
src/main/java/org/b3log/solo/util/Images.java
View file @
71f98fb8
...
@@ -61,7 +61,7 @@ public final class Images {
...
@@ -61,7 +61,7 @@ public final class Images {
continue
;
continue
;
}
}
ret
=
StringUtils
.
replace
(
ret
,
imgSrc
,
imgSrc
+
"?imageView2/2/w/
768
/format/jpg/interlace/1/q/100"
);
ret
=
StringUtils
.
replace
(
ret
,
imgSrc
,
imgSrc
+
"?imageView2/2/w/
1280
/format/jpg/interlace/1/q/100"
);
}
}
return
ret
;
return
ret
;
...
...
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