This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
creylopez
/
django-ex
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
2
Wiki
Activity
Browse Source
Minor tweaks to image compression settings
pull/172/head
Michael Olund
5 years ago
parent
47da838102
commit
57a7e7d413
1 changed files
with
3 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+3
-2
vue/src/components/Uploader/Uploader.vue
+ 3
- 2
vue/src/components/Uploader/Uploader.vue
View File
@ -247,8 +247,9 @@
if
(
newFile
.
file
&&
newFile
.
type
.
substr
(
0
,
6
)
===
"image/"
)
{
new
Compressor
(
newFile
.
file
,
{
quality
:
0.9
,
maxWidth
:
3600
,
maxHeight
:
3600
,
maxWidth
:
3300
,
maxHeight
:
3300
,
convertSize
:
Infinity
,
success
(
result
)
{
console
.
log
(
result
)
;
self
.
$refs
.
upload
.
update
(
newFile
,
{
Write
Preview
Loading…
Cancel
Save