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

272
Views
Cómo convertir nuestras imágenes locales a Base64 en Next js usando Plaiceholder

He estado usando placeholder para obtener una imagen convertida en base64 para pasar blurDataUrl en el componente next/Image.

 export const getStaticProps = async () => { const { base64, img } = await getPlaiceholder( "imagePath", { size: 10 } ); return { props: { imageProps: { ...img, blurDataURL: base64, }, }, }; }; const PageBase64Single = ({ title, heading, imageProps }) => ( <Image {...imageProps} placeholder="blur" /> );

Aquí tengo 2 problemas:

  1. Quiero mantener este imagePath dinámico para poder pasar varias imágenes y URL en consecuencia en blurDataUrl
  2. cuando estoy usando esto, está dando fs no encontrado

Atascado desde hace mucho tiempo, amablemente ayuda

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!