swissspidy / media-experiments

WordPress media experiments
GNU General Public License v2.0
72 stars 1 forks source link

AVIF encoding can be very slow #324

Closed swissspidy closed 1 month ago

swissspidy commented 7 months ago

Related:

swissspidy commented 7 months ago

Maybe just because this is using libheif under the hood which isn't super fast?

Previously I used @jsquash/avif (removed in #257), which uses libavif with aom encoder instead.

Maybe I can partially undo #257 to do some testing/benchmarking.

Related useful links:

swissspidy commented 1 month ago

Can tinker with the (CPU) effort config in vips. It defaults to 4 (equivalent to speed = 5). The lower the faster. So to match https://core.trac.wordpress.org/ticket/61758 it would need to be set to 2.