mirror of
https://github.com/lovell/sharp.git
synced 2025-07-09 10:30:15 +02:00
Corrected order of width and height in usage docs
This commit is contained in:
parent
b836704451
commit
6e3f9b04de
@ -51,7 +51,7 @@ sharp.crop("input.jpg", "output.jpg", 300, 200, function(err) {
|
|||||||
if (err) {
|
if (err) {
|
||||||
throw err;
|
throw err;
|
||||||
}
|
}
|
||||||
// output.jpg is a 300 pixels wide and 200 pixels high image
|
// output.jpg is a 200 pixels wide and 300 pixels high image
|
||||||
// containing a scaled and cropped version of input.jpg
|
// containing a scaled and cropped version of input.jpg
|
||||||
});
|
});
|
||||||
```
|
```
|
||||||
@ -65,7 +65,7 @@ sharp.embedWhite("input.jpg", "output.jpg", 200, 300, function(err) {
|
|||||||
if (err) {
|
if (err) {
|
||||||
throw err;
|
throw err;
|
||||||
}
|
}
|
||||||
// output.jpg is a 300 pixels wide and 200 pixels high image
|
// output.jpg is a 200 pixels wide and 300 pixels high image
|
||||||
// containing a scaled version of input.jpg embedded on a white canvas
|
// containing a scaled version of input.jpg embedded on a white canvas
|
||||||
});
|
});
|
||||||
```
|
```
|
||||||
@ -79,7 +79,7 @@ sharp.embedBlack("input.jpg", "output.jpg", 200, 300, function(err) {
|
|||||||
if (err) {
|
if (err) {
|
||||||
throw err;
|
throw err;
|
||||||
}
|
}
|
||||||
// output.jpg is a 300 pixels wide and 200 pixels high image
|
// output.jpg is a 200 pixels wide and 300 pixels high image
|
||||||
// containing a scaled version of input.jpg embedded on a black canvas
|
// containing a scaled version of input.jpg embedded on a black canvas
|
||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user