microsoft / microsoft/onnxruntime-genai

[MultiModal] Unable to Disable OCOS_ENABLE_VENDOR_IMAGE_CODECS in ORT-GenAI Build

Open
#1,737 0 comments 0 reactions 0 assignees View on GitHub
msedge
Dominant language
C++
Stars
1.1k
Forks
354
Avg merge
2d 16h
Merged PRs (30d)
85

Description

The build preset for ORT-GenAI [forcibly enables](https://github.com/microsoft/onnxruntime-extensions/blob/main/cmake/presets/ort_genai.cmake#L8) the option OCOS_ENABLE_VENDOR_IMAGE_CODECS=ON, and attempts to override it via OCOS_ENABLE_VENDOR_IMAGE_CODECS=OFF in the build command are ignored.

For Chromium-Sandbox use cases, it's critical to disable this flag to ensure full isolation from OS-level image codec dependencies. This limitation blocks integration of multimodal capabilities in Chromium-based browsers such as Microsoft Edge, where sandboxing and platform independence are required.

**Suggested Fix**: Allow OCOS_ENABLE_VENDOR_IMAGE_CODECS to be overridden via build command or expose a configurable toggle in the CMake presets.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with cmake/presets/ort_genai.cmake at line 8 and inspect how OCOS_ENABLE_VENDOR_IMAGE_CODECS is set in the ORT-GenAI build preset. Reproduce the build with OCOS_ENABLE_VENDOR_IMAGE_CODECS=OFF, then verify that the command-line override or an exposed preset toggle disables the option.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake, cpp
Domain
build-system
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
58/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.