Files
neural-hunt/internal/artifact/reference.go
jbergner 005fd6ca51
Some checks failed
release-tag / release-image (push) Failing after 1m18s
RC-1
2026-08-10 05:48:55 +02:00

22 lines
831 B
Go

package artifact
import _ "embed"
// styleReferenceJPEG is the bundled fallback style used for tasks that do not
// have their own uploaded style reference. In the RIFT v2.8 pipeline it is no
// longer used to define the global character identity: character_anchor.png is
// generated independently, while every card receives the global character
// anchor plus a task-specific (or this default) style reference.
//
//go:embed assets/style_reference.jpg
var styleReferenceJPEG []byte
// DefaultStyleReferenceJPEG returns a copy of the bundled fallback reference so
// the authenticated/admin and public task-style preview handlers can render the
// same fallback that the image worker will use.
func DefaultStyleReferenceJPEG() []byte {
out := make([]byte, len(styleReferenceJPEG))
copy(out, styleReferenceJPEG)
return out
}