Skip to content

Avif encoder produces artifacts when SharpModifier::class is used #68

@deluxetom

Description

@deluxetom

Describe the bug

After using the SharpModifier, if I encode the image to avif, it produces artifacts.
The output looks correct with other modifiers, only this one seems to cause issues.

Code Example

use Intervention\Image\Drivers\Vips\Driver as VipsDriver;
use Intervention\Image\ImageManager;

$image = ImageManager::withDriver(VipsDriver::class)
    ->read('trim.png')
    ->sharpen(5)
    ->toAvif();

Expected behavior

Image should match other encoders:

Image

Images

Current output in avif:

Image

Environment:

  • PHP Version: 8.1
  • OS: Ubuntu
  • Intervention Image Version: 3.11.0
  • php-vips Version: develop
  • libvips Version: 8.16.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions