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
DIV-1171 - Reduced quality and resolution for uploaded images.
pull/172/head
Michael Olund
5 years ago
parent
ea19710e3b
commit
66a7d601d1
1 changed files
with
3 additions
and
3 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+3
-3
vue/src/components/Uploader/Uploader.vue
+ 3
- 3
vue/src/components/Uploader/Uploader.vue
View File
@ -259,9 +259,9 @@
const
self
=
this
;
if
(
newFile
.
file
&&
newFile
.
type
.
substr
(
0
,
6
)
===
"image/"
)
{
new
Compressor
(
newFile
.
file
,
{
quality
:
0.
9
,
maxWidth
:
33
00
,
maxHeight
:
33
00
,
quality
:
0.
8
,
maxWidth
:
21
00
,
maxHeight
:
21
00
,
convertSize
:
Infinity
,
success
(
result
)
{
self
.
$refs
.
upload
.
update
(
newFile
,
{
Write
Preview
Loading…
Cancel
Save