Lovell Fuller

Results 604 comments of Lovell Fuller

Have you tried setting the pipeline colourspace to ensure the image remains in CMYK throughout? ```js .pipelineColourspace('cmyk') ``` https://sharp.pixelplumbing.com/api-colour#pipelinecolourspace

The change in commit https://github.com/lovell/sharp/commit/fb70fbb09ff76440124b1fad567c39bd2997cc99 prevents the erroneous sRGB transformation when using CMYK everywhere, plus adds a slightly-modified version of @adriaanmeuris' example test case to help prevent regression. Thanks all...

@adriaanmeuris Are you able to test to see if the following patch fixes the problem you're seeing? ```diff --- a/src/pipeline.cc +++ b/src/pipeline.cc @@ -331,6 +331,7 @@ class PipelineWorker : public...

@adriaanmeuris Great, thanks for confirming, added via commit https://github.com/lovell/sharp/commit/3eeaee71c06c38d0d9e4d2abcb6b04397febe0b8

v0.33.3 now available, thanks everyone for your help fixing/testing this.

Both these images appear to be rendered as-expected, both have a transparent background. I suspect your question relates to the semi-transparent pixels around some of the edges in the 1200px...

You could also try using [shape-rendering](https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/shape-rendering) to reduce anti-aliasing. ```diff - + ```

@danielwerg Were you able to make any progress with this?

Hi, thanks for reporting, this looks like the problem that https://github.com/libvips/libvips/pull/3293 is trying to solve where the `failOn` setting is ignored for some truncated JPEG images.

The addition of `.removeAlpha().toColourspace('b-w')` to a pipeline will reduce the input to a single, greyscale band suitable for use with a `bitdepth` of 1. https://sharp.pixelplumbing.com/api-channel#removealpha https://sharp.pixelplumbing.com/api-colour#tocolourspace sharp supports the [NODE_DEBUG](https://nodejs.org/docs/latest/api/cli.html#cli_node_debug_module)...