Hello, our code stoped working after upgrading from 0.32.1 to 0.32.5. I've found issue similar in previous versions
#3605
our code, relevant part
const readStream = this.storage
.bucket(bucketName)
.file(sourceCloudFilename)
.createReadStream();
const writeStream = this.storage
.bucket(bucketName)
.file(targetCloudFilename)
.createWriteStream();
const transformStreamSharp = sharp({
sequentialRead: true,
failOnError: false,
})
.withMetadata()
.toColorspace('rgb16')
.png({
compressionLevel: 5,
})
.trim()
.toBuffer((_err, _buffer, outputInfo) =>
this.uploadTrimmingInfo(trimInfoCloudFilename, bucketName, outputInfo),
);
await streamPromises.pipeline(
readStream,
transformStreamSharp,
writeStream,
);
Expected result: image with 16bit color depth
Actual result: image with 8bit color depth
(input data are ofc the same, image with 16bpc)
I think the function ".toColorspace('rgb16')" has some issues in recent version.
Hello, our code stoped working after upgrading from 0.32.1 to 0.32.5. I've found issue similar in previous versions
#3605
our code, relevant part
Expected result: image with 16bit color depth
Actual result: image with 8bit color depth
(input data are ofc the same, image with 16bpc)
I think the function ".toColorspace('rgb16')" has some issues in recent version.