libvips / libvips/libvips

cpp API should support strings to set flag values

Open
#4,808 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
C
Stars
11.7k
Forks
797
Avg merge
3d 6h
Merged PRs (30d)
15

Description

  • in the cpp API, we should allow strings to set flag sets (cf. strings to set enums)
  • flags should allow any integer value

See https://github.com/libvips/libvips/discussions/4807

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the C++ API handling for flag sets and read discussion 4807 for the intended behavior. Trace the existing string-to-enum support as the closest reference; done means flag sets accept strings and flags accept any integer value, with corresponding coverage added where the API is tested.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
api
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.