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

95
Views
Safari no retrocederá una imagen AVIF

Estoy tratando de renderizar una imagen con el siguiente código:

 <picture> <source srcset="https://75tm.gr/GFXS1205/2048/GFXS1205.avif"> <source srcset="https://75tm.gr/GFXS1205/2048/GFXS1205.webp"> <img src="https://75tm.gr/GFXS1205/2048/GFXS1205.jpg"> </picture>

En los navegadores Safari, la imagen no se procesa en absoluto. Si elimino la primera source que tiene el formato .avif , entonces Safari muestra correctamente la imagen alternativa .jpg .

Ver en JsFiddle

¿Es esto un error de Safari? Si es así, esto realmente impide el uso del formato .avif . ¿Alguien sabe de alguna solución?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Safari no puede retroceder si no proporciona el atributo de type . Así que necesitas algo como esto (probado en Safari, funciona bien para mí):

 <picture> <source srcset="https://75tm.gr/GFXS1205/2048/GFXS1205.avif" type="image/avif"> <source srcset="https://75tm.gr/GFXS1205/2048/GFXS1205.webp" type="image/webp"> <img src="https://75tm.gr/GFXS1205/2048/GFXS1205.jpg"> </picture>

about 4 years ago · Juan Pablo Isaza Report
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!