Urgent.News

What's breaking now, across thousands of outlets.

Tech

5 Rules for Creating and Reusing Image Presets in Game Catalogs

Creating and reusing image transformation presets for game catalog derivatives has an awkward constraint: a thumbnail must feel immediate after an asset upload, while every derivative still has to be reproducible months later when a storefront adds another viewport. Short answer: create immutable, reusable transformation definitions once, generate the required responsive thumbnails during upload,…

To create and reuse image transformation presets for game catalog derivatives, begin by defining a tiny, unchangeable object called a named transformation definition. This definition includes a preset ID, revision number, output format, dimensions, and fit policy. The transformation request must follow the provider's current schema, so don't try to guess field names from a URL or another image service.

Store the asset or job identifiers at each stage and verify the current catalog before starting a batch. Use POST /v1/image/transformation/create to define a reusable transformation, and GET /v1/image/transformation/list to let workers see available definitions. Remember that "current" means the worker should list the catalog to find a preset, but the job should keep the exact preset revision or identifier. This ensures consistency even if the meaning of store-card changes during a queue.

For responsive thumbnails that appear on game detail or catalog pages, process them during upload. Validate the source, resolve approved presets, start transformations, validate results, and only then mark the catalog asset as ready. This increases work before publication but eliminates cache misses and transformation dependencies from the first reader's request.

On-demand processing is useful for rare, newly introduced derivatives or those that can't be predetermined. Use an application-level idempotency key derived from the source asset ID and immutable preset ID to keep only one logical derivative record for that pair.

Document the catalog condition, processing point, and reason for using upload processing. Upload predictable demand, validate before publishing, and accept longer ingestion for new viewports. On demand, use it for rare editorial crops with low expected reuse, and upload for lineage known before release. Don't assume either method is universally better; measure workload-specific factors like derivative request frequency, publication latency budget, and retention policy.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Back in the same workspace, but which visit owns the result?

Back in the same workspace, but which visit owns the result? An A→B→A navigation can make an old request look current again.

  • An A→B→A navigation can create ambiguity in determining which visit owns the result.
  • Orca implemented a marker to identify pending requests and temporarily stored results.

More from Wednesday 16 September →