Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

269
Views
Convert Base64 Image into LZW compressed TIFF images

i have a nodejs program that previously used sharp package to convert image to lzw compressed TIFF images as below. It gets the photo from s3 and converts to TIFF.

const image: Buffer = <Buffer>await this.s3Accessor.read(filePath); //download from aws s3 bucket
const tiff = await Sharp(image) 
      .tiff({
             compression: 'lzw',
       }).toBuffer();
return tiff.toString("base64"); //convert to tiff with lzw compression, use base64 string for API call

However, recently i introduced webpack to pack my lambdas, and sharp package is not compatible in webpack.

Is there any alternative package that can be used to convert images to tiff with lzw compression? I tried using JIMP, but it doesn't come with LZW compression and the TIFF file generated JIMP is just too huge compared to the one by Sharp

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!