mirror of
https://github.com/lovell/sharp.git
synced 2026-02-12 09:36:13 +01:00
Ensure sharp.format lists support for raw input #220
This commit is contained in:
@@ -752,7 +752,7 @@ class PipelineWorker : public AsyncWorker {
|
||||
area->free_fn = nullptr;
|
||||
vips_area_unref(area);
|
||||
baton->formatOut = "webp";
|
||||
} else if (baton->formatOut == "raw") {
|
||||
} else if (baton->formatOut == "raw" || (baton->formatOut == "input" && inputImageType == ImageType::RAW)) {
|
||||
// Write raw, uncompressed image data to buffer
|
||||
if (baton->greyscale || image.interpretation() == VIPS_INTERPRETATION_B_W) {
|
||||
// Extract first band for greyscale image
|
||||
|
||||
Reference in New Issue
Block a user