class

PrismatIQ::ThemeExtractor

Inherits Reference < Object

Orchestrator for theme extraction from various sources.

Delegates HTTP fetching to URLFetcher (SSRF, rate limiting, streaming) and image parsing to focused extractors (SVGColorExtractor, ICOFile, CrImage). Owns caching and theme result construction only.

Constructors

new(config : Config = Config.default)

Instance methods

clear_cache
extract(source : String, options : ThemeOptions = ThemeOptions.new) : ThemeResult | Nil
extract_from_file(path : String, options : ThemeOptions = ThemeOptions.new) : ThemeResult | Nil
extract_from_url(url : String, options : ThemeOptions = ThemeOptions.new) : ThemeResult | Nil
fix_theme(theme_json : String, legacy_bg : String | Nil = nil, legacy_text : String | Nil = nil) : String | Nil