Skip to content

Commit

Permalink
change q_82 to q_auto
Browse files Browse the repository at this point in the history
  • Loading branch information
Anna committed Aug 8, 2016
1 parent 29cd83b commit fb73afe
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 25 deletions.
5 changes: 3 additions & 2 deletions src/cloudinary/cloudinary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ module Cloudinary {
manipulation.push('w_' + imageWidth);
manipulation.push('fl_lossy');
manipulation.push('f_auto');
manipulation.push('q_82');
manipulation.push('q_auto');
manipulation.push('dpr_1.0');
src += '/' + manipulation.join(',');

Expand Down Expand Up @@ -150,9 +150,10 @@ module Cloudinary {

manipulation = [];
manipulation.push('w_' + width);
manipulation.push('fl_lossy');
manipulation.push('f_auto');

manipulation.push('q_82');
manipulation.push('q_auto');
manipulation.push('dpr_1.0');
src += '/' + manipulation.join(',');

Expand Down
40 changes: 20 additions & 20 deletions test/cloudinary.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ describe('[Cloudinary]', function() {
});

expect(imageUrl).to.eq('mockDomain/mockAccount/image/upload/' +
'w_840,fl_lossy,f_auto,q_82,dpr_1.0/' +
'w_840,fl_lossy,f_auto,q_auto,dpr_1.0/' +
'w_840,h_431,c_mpad/' +
'w_700,h_392,x_35,y_39,c_crop/' +
'mockUpload/image.png');
Expand All @@ -59,7 +59,7 @@ describe('[Cloudinary]', function() {
});

expect(imageUrl).to.eq('mockDomain/mockAccount/image/upload/' +
'w_630,fl_lossy,f_auto,q_82,dpr_1.0/' +
'w_630,fl_lossy,f_auto,q_auto,dpr_1.0/' +
'w_1050,h_840,c_mpad/' +
'w_700,h_438,x_0,y_44,c_crop/' +
'mockUpload/image.png');
Expand All @@ -75,7 +75,7 @@ describe('[Cloudinary]', function() {
});

expect(imageUrl).to.eq('mockDomain/mockAccount/image/upload/' +
'w_840,fl_lossy,f_auto,q_82,dpr_1.0/' +
'w_840,fl_lossy,f_auto,q_auto,dpr_1.0/' +
'w_840,h_1120,c_mpad/' +
'w_700,h_438,x_35,y_44,c_crop/' +
'mockUpload/image.png');
Expand All @@ -91,7 +91,7 @@ describe('[Cloudinary]', function() {
});

expect(imageUrl).to.eq('mockDomain/mockAccount/image/upload/' +
'w_840,fl_lossy,f_auto,q_82,dpr_1.0/' +
'w_840,fl_lossy,f_auto,q_auto,dpr_1.0/' +
'w_980,h_1120,c_mpad/' +
'w_700,h_438,x_280,y_22,c_crop/' +
'mockUpload/image.png');
Expand All @@ -107,7 +107,7 @@ describe('[Cloudinary]', function() {
});

expect(imageUrl).to.eq('mockDomain/mockAccount/image/upload/' +
'w_490,fl_lossy,f_auto,q_82,dpr_1.0/' +
'w_490,fl_lossy,f_auto,q_auto,dpr_1.0/' +
'w_770,h_1120,c_mpad/' +
'w_700,h_438,x_70,y_44,c_crop/' +
'mockUpload/image.png');
Expand All @@ -123,7 +123,7 @@ describe('[Cloudinary]', function() {
});

expect(imageUrl).to.eq('mockDomain/mockAccount/image/upload/' +
'w_490,fl_lossy,f_auto,q_82,dpr_1.0/' +
'w_490,fl_lossy,f_auto,q_auto,dpr_1.0/' +
'w_770,h_1120,c_mpad/' +
'w_700,h_438,x_0,y_44,c_crop/' +
'mockUpload/image.png');
Expand All @@ -139,7 +139,7 @@ describe('[Cloudinary]', function() {
});

expect(imageUrl).to.eq('mockDomain/mockAccount/image/upload/' +
'w_840,fl_lossy,f_auto,q_82,dpr_1.0/' +
'w_840,fl_lossy,f_auto,q_auto,dpr_1.0/' +
'w_840,h_892,c_mpad/' +
'w_700,h_438,x_70,y_0,c_crop/' +
'mockUpload/image.png');
Expand All @@ -155,7 +155,7 @@ describe('[Cloudinary]', function() {
});

expect(imageUrl).to.eq('mockDomain/mockAccount/image/upload/' +
'w_1120,fl_lossy,f_auto,q_82,dpr_1.0/' +
'w_1120,fl_lossy,f_auto,q_auto,dpr_1.0/' +
'w_1120,h_648,c_mpad/' +
'w_700,h_438,x_35,y_210,c_crop/' +
'mockUpload/image.png');
Expand All @@ -171,7 +171,7 @@ describe('[Cloudinary]', function() {
});

expect(imageUrl).to.eq('mockDomain/mockAccount/image/upload/' +
'w_1120,fl_lossy,f_auto,q_82,dpr_1.0/' +
'w_1120,fl_lossy,f_auto,q_auto,dpr_1.0/' +
'w_1120,h_490,c_mpad/' +
'w_700,h_438,x_70,y_0,c_crop/' +
'mockUpload/image.png');
Expand All @@ -187,7 +187,7 @@ describe('[Cloudinary]', function() {
});

expect(imageUrl).to.eq('mockDomain/mockAccount/image/upload/' +
'w_1120,fl_lossy,f_auto,q_82,dpr_1.0/' +
'w_1120,fl_lossy,f_auto,q_auto,dpr_1.0/' +
'w_1120,h_648,c_mpad/' +
'w_700,h_438,x_70,y_210,c_crop/' +
'mockUpload/image.png');
Expand All @@ -212,7 +212,7 @@ describe('[Cloudinary]', function() {
});

expect(imageUrl).to.eq('mockDomain/mockAccount/image/fetch/' +
'w_840,fl_lossy,f_auto,q_82,dpr_1.0/' +
'w_840,fl_lossy,f_auto,q_auto,dpr_1.0/' +
'w_840,h_431,c_mpad/' +
'w_700,h_392,x_35,y_39,c_crop/' +
'http%3A%2F%2Fplacehold.it%2F700x700');
Expand All @@ -228,7 +228,7 @@ describe('[Cloudinary]', function() {
});

expect(imageUrl).to.eq('mockDomain/mockAccount/image/fetch/' +
'w_630,fl_lossy,f_auto,q_82,dpr_1.0/' +
'w_630,fl_lossy,f_auto,q_auto,dpr_1.0/' +
'w_1050,h_840,c_mpad/' +
'w_700,h_438,x_0,y_44,c_crop/' +
'http%3A%2F%2Fplacehold.it%2F700x700');
Expand All @@ -244,7 +244,7 @@ describe('[Cloudinary]', function() {
});

expect(imageUrl).to.eq('mockDomain/mockAccount/image/fetch/' +
'w_840,fl_lossy,f_auto,q_82,dpr_1.0/' +
'w_840,fl_lossy,f_auto,q_auto,dpr_1.0/' +
'w_840,h_1120,c_mpad/' +
'w_700,h_438,x_35,y_44,c_crop/' +
'http%3A%2F%2Fplacehold.it%2F700x700');
Expand All @@ -260,7 +260,7 @@ describe('[Cloudinary]', function() {
});

expect(imageUrl).to.eq('mockDomain/mockAccount/image/fetch/' +
'w_840,fl_lossy,f_auto,q_82,dpr_1.0/' +
'w_840,fl_lossy,f_auto,q_auto,dpr_1.0/' +
'w_980,h_1120,c_mpad/' +
'w_700,h_438,x_280,y_22,c_crop/' +
'http%3A%2F%2Fplacehold.it%2F700x700');
Expand All @@ -276,7 +276,7 @@ describe('[Cloudinary]', function() {
});

expect(imageUrl).to.eq('mockDomain/mockAccount/image/fetch/' +
'w_490,fl_lossy,f_auto,q_82,dpr_1.0/' +
'w_490,fl_lossy,f_auto,q_auto,dpr_1.0/' +
'w_770,h_1120,c_mpad/' +
'w_700,h_438,x_70,y_44,c_crop/' +
'http%3A%2F%2Fplacehold.it%2F700x700');
Expand All @@ -292,7 +292,7 @@ describe('[Cloudinary]', function() {
});

expect(imageUrl).to.eq('mockDomain/mockAccount/image/fetch/' +
'w_490,fl_lossy,f_auto,q_82,dpr_1.0/' +
'w_490,fl_lossy,f_auto,q_auto,dpr_1.0/' +
'w_770,h_1120,c_mpad/' +
'w_700,h_438,x_0,y_44,c_crop/' +
'http%3A%2F%2Fplacehold.it%2F700x700');
Expand All @@ -308,7 +308,7 @@ describe('[Cloudinary]', function() {
});

expect(imageUrl).to.eq('mockDomain/mockAccount/image/fetch/' +
'w_840,fl_lossy,f_auto,q_82,dpr_1.0/' +
'w_840,fl_lossy,f_auto,q_auto,dpr_1.0/' +
'w_840,h_892,c_mpad/' +
'w_700,h_438,x_70,y_0,c_crop/' +
'http%3A%2F%2Fplacehold.it%2F700x700');
Expand All @@ -324,7 +324,7 @@ describe('[Cloudinary]', function() {
});

expect(imageUrl).to.eq('mockDomain/mockAccount/image/fetch/' +
'w_1120,fl_lossy,f_auto,q_82,dpr_1.0/' +
'w_1120,fl_lossy,f_auto,q_auto,dpr_1.0/' +
'w_1120,h_648,c_mpad/' +
'w_700,h_438,x_35,y_210,c_crop/' +
'http%3A%2F%2Fplacehold.it%2F700x700');
Expand All @@ -340,7 +340,7 @@ describe('[Cloudinary]', function() {
});

expect(imageUrl).to.eq('mockDomain/mockAccount/image/fetch/' +
'w_1120,fl_lossy,f_auto,q_82,dpr_1.0/' +
'w_1120,fl_lossy,f_auto,q_auto,dpr_1.0/' +
'w_1120,h_490,c_mpad/' +
'w_700,h_438,x_70,y_0,c_crop/' +
'http%3A%2F%2Fplacehold.it%2F700x700');
Expand All @@ -356,7 +356,7 @@ describe('[Cloudinary]', function() {
});

expect(imageUrl).to.eq('mockDomain/mockAccount/image/fetch/' +
'w_1120,fl_lossy,f_auto,q_82,dpr_1.0/' +
'w_1120,fl_lossy,f_auto,q_auto,dpr_1.0/' +
'w_1120,h_648,c_mpad/' +
'w_700,h_438,x_70,y_210,c_crop/' +
'http%3A%2F%2Fplacehold.it%2F700x700');
Expand Down
5 changes: 3 additions & 2 deletions util.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit fb73afe

Please sign in to comment.