Start a fix that makes a pattern tile repeat seamlessly
Validates the image, then starts a job in the background that makes it tile seamlessly under
the requested repeat type, and answers 202 with the job. Poll GET /v1/jobs/{job_id}.
Inputs: PNG, JPEG or WebP, at most 40 MB, at least 64 x 64 px, at most 3600 px on a side; an
even height for half_drop and an even width for half_brick; no transparent pixels near the
edges.
A fix costs one credit, or Plans.fix_credits.large_credits for a tile above large_above_px
on either side. The account’s free fix of the day (one per UTC day) pays first, then its
credits. The credits are reserved when the job starts and come back when it fails with
no_seamless_candidate, service_unavailable or interrupted. The same image with the same
repeat type, fixed before, gets a job that has already succeeded, marked cached, at no
charge. Sent again while its fix is still queued or running, it gets that same job back, at
no charge. On the Free plan, the images of a fix started with an API key carry a watermark.
Authorizations
An API key of your account, created on makeseamless.com and sent in the x-api-key header. Keys start with smls_. On the Free plan, the images of a fix started with a key carry a watermark; on Pro they are clean.
Body
The image file (PNG, JPEG or WebP).
straight: plain repeat on both axes. half_drop: the next column is shifted down by half the
height (needs an even height). half_brick: the next row is shifted right by half the width
(needs an even width).
straight, half_drop, half_brick Response
The job, queued, or already succeeded when cached.
^job_[0-9a-f]{32}$queued, running, succeeded, failed Progress for display; it only moves forward. queued: waiting to start. fixing: seamless
versions of the image are being made. finishing: the result and its files are being
prepared. finished: the job succeeded or failed.
queued, fixing, finishing, finished straight: plain repeat on both axes. half_drop: the next column is shifted down by half the
height (needs an even height). half_brick: the next row is shifted right by half the width
(needs an even width).
straight, half_drop, half_brick True when the same image was fixed before and this result was served again, at no charge.
Present when status is succeeded.
Present when status is failed.
The other images of a succeeded job, candidate_a (the result.alternative) first. Empty
until the job succeeded, and for a failed job.