'AVIF - difference in quality and size on different systems

I'm having trouble compressing images in AVIF format. We've decided to switch to this modern format. On the development server, the compression gives us the same image quality and a reduction in quality for example from 433Kb to 96Kb. However, on the production server we have the problem that the same image has 207Kb and a different color spectrum after compression.

Development server:

OSX Monterey
Version: ImageMagick 7.1.0-23 Q16-HDRI x86_64 2022-02-05 https://imagemagick.org
Copyright: (C) 1999-2021 ImageMagick Studio LLC
License: https://imagemagick.org/script/license.php
Features: Cipher DPC HDRI Modules OpenMP(5.0) 
Delegates (built-in): bzlib fontconfig freetype gslib heic jng jp2 jpeg lcms lqr ltdl lzma openexr png ps tiff webp xml zlib
Compiler: gcc (4.2)

Production server:

Rocky Linux 8.5 (Green Obsidian)
Version: ImageMagick 7.1.0-27 Q16-HDRI x86_64 2022-03-04 https://imagemagick.org
Copyright: (C) 1999 ImageMagick Studio LLC
License: https://imagemagick.org/script/license.php
Features: Cipher DPC HDRI Modules OpenMP(4.5) 
Delegates (built-in): bzlib cairo djvu fontconfig freetype gslib gvc heic jbig jng jp2 jpeg lcms lqr ltdl lzma openexr pangocairo png ps raqm raw rsvg tiff webp wmf x xml zip zlib
Compiler: gcc (8.5)

I can't figure out the reason that affects this quality. Is it dependent on some library? or maybe GPU or CPU?

Thank you.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source