Skip to content

Commit

Permalink
fix(Downgrade sharp): Downgrade sharp so that we can install it on al…
Browse files Browse the repository at this point in the history
…pine distros.
  • Loading branch information
Alexandru Badiu committed Jun 14, 2017
1 parent 7442ef9 commit 56c524c
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 211 deletions.
20 changes: 0 additions & 20 deletions examples/example.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,6 @@ import ImageCache from '../dist/index';

const imagecache = new ImageCache(presets);

imagecache.render('./in.png', 'test_sc', (err, image) => {
if (err) {
console.log('Failed to process image out_s_test_sc.png.');
console.log(err);

return;
}

image.toFile('out_s_test_sc.png', (saveErr, info) => {
if (saveErr) {
console.log('Failed to save image out_s_test_sc.png.');
console.log(err);

return;
}

console.log(`Saved image out_s_test_sc.png with width ${info.width} and height ${info.height}.`);
});
});

imagecache.render('./in.png', 's_crop_tiny', (err, image) => {
if (err) {
console.log('Failed to process image out_s_crop_tiny.png.');
Expand Down
23 changes: 0 additions & 23 deletions examples/presets.js
Original file line number Diff line number Diff line change
@@ -1,27 +1,4 @@
module.exports = {
test_sc: {
presetname: 'test_sc',
actions: [
{
action: 'scale_and_crop',
config: {
width: 152,
height: 152,
},
},
{
action: 'define_canvas',
config: {
color: '#333333',
width: 400,
height: 400,
},
},
{
action: 'blur',
},
],
},
s_crop_tiny: {
presetname: 's_crop_tiny',
actions: [
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@
]
},
"dependencies": {
"async": "^2.4.1",
"sharp": "^0.18.1",
"string": "^3.3.3"
"async": "2.4.1",
"sharp": "0.16.2",
"string": "3.3.3"
},
"devDependencies": {
"@semantic-release/condition-codeship": "^1.1.0",
Expand Down
Loading

0 comments on commit 56c524c

Please sign in to comment.