Skip to content

feat(images): map the large variant to real TMDB sizes - #16

Merged
Quick104 merged 1 commit into
mainfrom
feat/image-variant-large
Aug 24, 2026
Merged

Quick104 merged 1 commit into
mainfrom
feat/image-variant-large

Conversation

@Quick104

Copy link
Copy Markdown
Contributor

Problem

Silo-Server/silo-server#742 adds client-selectable artwork sizes, and the server now sends a "large" image-variant hint (~780px posters/stills, ~1280px backdrops/logos). This plugin's tmdbVariantSize falls through to original for unknown variants — graceful, but it serves the heaviest possible asset for a hint that asked for a mid tier.

Approach

Add a case "large" mapping each role to the closest real TMDB size: poster → w780, backdrop → w1280, profile → h632, logo → w500 (largest sized rendition TMDB offers), still → original (TMDB has nothing between w300 and original; anything smaller would make large smaller than featured). The default → original fallback is untouched. Vocabulary and degradation rules are now documented in the SDK (Silo-Server/silo-plugin-sdk feat/image-variant-large PR).

Verification

go build ./..., go test ./..., make build, make test all pass; five new TestResolveImageURL large cases (one per role).

Related issue: N/A — plugin half of Silo-Server/silo-server#742.

AI-use disclosure

Implemented by Claude Code (maintainer-directed) with human review.

🤖 Generated with Claude Code

The server now sends a "large" variant hint between "featured" and
"full". Unknown variants fell through to "original", so every large
request fetched the full-size asset.

Map it per role to the closest real TMDB rendition: posters w780,
backdrops w1280, profiles h632, logos w500. TMDB serves no still size
between w300 and original, so stills stay on original.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Aug 24, 2026

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 34 minutes.

View limit details

Limit details: You’ve used all 5 included reviews currently available. Your 55 included PR review attempts over the past 7 days set your current allowance at 5 reviews per hour.

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: a769586b-8973-4975-8012-e86085761844

📥 Commits

Reviewing files that changed from the base of the PR and between 7bae6ba and 7dbd3ea.

📒 Files selected for processing (2)
  • main.go
  • main_test.go

Comment @coderabbitai help to get the list of available commands.

@Quick104
Quick104 merged commit 2d1efe0 into main Aug 24, 2026
2 checks passed
@Quick104
Quick104 deleted the feat/image-variant-large branch August 24, 2026 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant