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

Commit acc8903

Browse files
committed
tweaks
- change ratio of thumbnails under large image to match - change upload sizes to match, bump quality some.
1 parent 8a4da01 commit acc8903

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

css/obBase.css

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -587,6 +587,7 @@ form {
587587
position: relative;
588588
background-position: center;
589589
background-size: cover;
590+
background-repeat: no-repeat;
590591
border-radius: 2px;
591592
height: 230px;
592593
width: 250px;
@@ -595,12 +596,12 @@ form {
595596
.itemImg.itemImg-large {
596597
/* flex row collapses unless a specific height is set */
597598
height: 472px;
598-
width: 100%;
599+
width: 514px;
599600
border-radius: 0;
600601
}
601602

602603
.itemImg.itemImg-small {
603-
height: 82px;
604+
height: 111px;
604605
width: 121px;
605606
margin: 0 10px 10px 0;
606607
border-radius: 1px;

js/views/itemEditVw.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -330,8 +330,8 @@ module.exports = baseVw.extend({
330330
var self = this,
331331
$imageInput = this.$el.find('.js-itemImageUpload'),
332332
curImages = this.model.get('combinedImagesArray'),
333-
maxH = 800,
334-
maxW = 800,
333+
maxH = 944,
334+
maxW = 1028,
335335
imageList = [],
336336
loaded = 0,
337337
imageCount;
@@ -382,7 +382,7 @@ module.exports = baseVw.extend({
382382
canvas.height = imgH;
383383
ctx = canvas.getContext('2d');
384384
ctx.drawImage(newImage, 0, 0, imgW, imgH);
385-
dataURI = canvas.toDataURL('image/jpeg', 0.45);
385+
dataURI = canvas.toDataURL('image/jpeg', 0.7);
386386
dataURI = dataURI.replace(/^data:image\/(png|jpeg);base64,/, "");
387387
imageList.push(dataURI);
388388

0 commit comments

Comments
 (0)