Skip to content
This repository was archived by the owner on May 16, 2019. It is now read-only.

Commit 7727945

Browse files
committed
Change webp back to jpeg to allow easier integration with 3rd party services.
1 parent cfcd92c commit 7727945

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

js/views/itemEditVw.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ module.exports = baseVw.extend({
381381
canvas.height = imgH;
382382
ctx = canvas.getContext('2d');
383383
ctx.drawImage(newImage, 0, 0, imgW, imgH);
384-
dataURI = canvas.toDataURL('image/webp', 0.7);
384+
dataURI = canvas.toDataURL('image/jpeg', 0.7);
385385
dataURI = dataURI.replace(/^data:image\/(png|jpeg|webp);base64,/, "");
386386
imageList.push(dataURI);
387387

js/views/onboardingModal.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ module.exports = baseModal.extend({
365365
};
366366

367367
var imageURI = this.$('#image-cropper').cropit('export', {
368-
type: 'image/webp',
368+
type: 'image/jpeg',
369369
quality: 0.75,
370370
originalSize: false
371371
});

js/views/settingsVw.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -806,7 +806,7 @@ module.exports = pageVw.extend({
806806
var bannerCrop = self.$('#settings-image-cropperBanner');
807807
if (self.newBanner && bannerCrop.cropit('imageSrc')){
808808
bannerURI = bannerCrop.cropit('export', {
809-
type: 'image/webp',
809+
type: 'image/jpeg',
810810
quality: 0.75,
811811
originalSize: false
812812
});
@@ -828,7 +828,7 @@ module.exports = pageVw.extend({
828828
//if an avatar has been set, upload it first and get the hash
829829
if (self.newAvatar && avatarCrop.cropit('imageSrc')){
830830
imageURI = avatarCrop.cropit('export', {
831-
type: 'image/webp',
831+
type: 'image/jpeg',
832832
quality: 0.75,
833833
originalSize: false
834834
});

js/views/userPageVw.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1331,7 +1331,7 @@ UserPageVw = pageVw.extend({
13311331
//var formData = new FormData(this.$el.find('#userPageImageForm')[0]);
13321332
var serverUrl = self.options.userModel.get('serverUrl'),
13331333
imageURI = self.$el.find('#image-cropper').cropit('export', {
1334-
type: 'image/webp',
1334+
type: 'image/jpeg',
13351335
quality: 0.75,
13361336
originalSize: false
13371337
});

0 commit comments

Comments
 (0)