Skip to content

gifload: no property named dpi #179

@ethaniel

Description

@ethaniel

Hello and thank you for the amazing binding.

I am trying to make a "universal" loader which accepts all kinds of images, but for example I would like to set those that have a property named dpi to a value of 300.

If I add an option called dpi to the Vips\Image::newFromFile options, and I am loading a normal gif image, I get a gifload: no property named dpi error.

I already use Vips\Image::findLoad to detect the kind of image I'm loading before I set the options. But I was wondering if it's possible to check if a dpi option exists for a specific loader (so I wouldn't have to hardcode the option exceptions for gif/jpg/etc)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions