[wp-trac] [WordPress Trac] #61758: Improve speed of AVIF image generation

WordPress Trac noreply at wordpress.org
Thu Jul 25 21:55:27 UTC 2024


#61758: Improve speed of AVIF image generation
-----------------------------+-----------------------------
 Reporter:  adamsilverstein  |      Owner:  (none)
     Type:  defect (bug)     |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  Media            |    Version:  6.5
 Severity:  normal           |   Keywords:  has-patch
  Focuses:  performance      |
-----------------------------+-----------------------------
 As raised on the Performance Lab plugin
 ([https://github.com/WordPress/performance/issues/371 Issue]), compressing
 AVIF images can be much slower that compressing that came image into WebP
 or JPEG formats. For normal image uploads this isn't an issue because the
 total time to compress a single image to all sizes in AVIF on a reasonably
 powered WordPress server is still less than a second (see issue for
 discussion). When recompressing a large number of images, however, this
 could be a real problem.

 The AVIF encoder does work harder to achieve much better compression,
 however we can improve the performance of this operation by
 [https://github.com/WordPress/performance/issues/371#issuecomment-2240037731
 raising the `heic:speed`] Imagick AVIF option to 7 (the default is 5).
 This will result in a bit faster processing with
 [https://github.com/WordPress/performance/issues/371#issuecomment-2246225973
 no loss of quality] - the default value is essentially too low.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/61758>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list