sharp 0.29.1 → 0.30.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -5
- package/binding.gyp +2 -0
- package/install/libvips.js +39 -8
- package/lib/constructor.js +13 -4
- package/lib/input.js +21 -4
- package/lib/libvips.js +16 -2
- package/lib/operation.js +14 -1
- package/lib/output.js +158 -69
- package/lib/platform.js +1 -1
- package/lib/resize.js +19 -0
- package/lib/sharp.js +11 -3
- package/lib/utility.js +24 -5
- package/package.json +28 -13
- package/src/common.cc +125 -19
- package/src/common.h +39 -5
- package/src/libvips/cplusplus/VImage.cpp +34 -16
- package/src/libvips/cplusplus/vips-operators.cpp +29 -1
- package/src/metadata.cc +6 -0
- package/src/metadata.h +1 -0
- package/src/operations.cc +94 -0
- package/src/operations.h +12 -0
- package/src/pipeline.cc +291 -255
- package/src/pipeline.h +19 -19
- package/src/sharp.cc +16 -0
package/src/operations.h
CHANGED
|
@@ -108,6 +108,18 @@ namespace sharp {
|
|
|
108
108
|
*/
|
|
109
109
|
VImage EnsureColourspace(VImage image, VipsInterpretation colourspace);
|
|
110
110
|
|
|
111
|
+
/*
|
|
112
|
+
* Split and crop each frame, reassemble, and update pageHeight.
|
|
113
|
+
*/
|
|
114
|
+
VImage CropMultiPage(VImage image, int left, int top, int width, int height,
|
|
115
|
+
int nPages, int *pageHeight);
|
|
116
|
+
|
|
117
|
+
/*
|
|
118
|
+
* Split into frames, embed each frame, reassemble, and update pageHeight.
|
|
119
|
+
*/
|
|
120
|
+
VImage EmbedMultiPage(VImage image, int left, int top, int width, int height,
|
|
121
|
+
std::vector<double> background, int nPages, int *pageHeight);
|
|
122
|
+
|
|
111
123
|
} // namespace sharp
|
|
112
124
|
|
|
113
125
|
#endif // SRC_OPERATIONS_H_
|