Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

271
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda