Skip to content

Make the dependency on FreeImage optional #388

@mahiuchun

Description

@mahiuchun

Desired behavior

gz-common could be built without using FreeImage.

Alternatives considered

N/A

Implementation suggestion

Use https://github.com/nothings/stb/blob/master/stb_image.h for image loading.

Additional context

  • By not supporting less commonly used image formats, the attack surface of image loading is reduced.
  • FreeImage has an active SVN but they have not made a release since 2018.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    Status

    To do

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions