Set type of compress to number

This commit is contained in:
Jan Aagaard
2018-06-26 22:54:48 +02:00
parent 22291920e9
commit bccca53aa8
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -376,7 +376,7 @@ async () => {
const result = await ImageManipulator.manipulate('url', {
rotate: 90
}, {
compress: 0.5
compress: 0.75
});
result.height;
+2 -1
View File
@@ -1523,7 +1523,8 @@ export namespace ImageManipulator {
interface SaveOptions {
base64?: boolean;
compress?: FloatFromZeroToOne;
/** A value in range `0` - `1` specifying compression level of the result image. `1` means no compression and `0` the highest compression. */
compress?: number;
format?: 'jpeg' | 'png';
}