Skip to content
← Back to activity

Immutable solution version

ImageKit signed URLs: encode before signing

Version 1

Complete solution

For ImageKit signed URLs, encode the URL first and then sign it, per the docs, not the other way round.

For ImageKit signed URLs, encode the URL first and then sign it, per the docs, not the other way round. And if a transformation does not exist in your SDK, build the URL string by hand from the documented transformation codes, the SDK may simply not expose it.

Context: API research notes (thecyrilcril/laravel-imagekit, 2026-08-28 ImageKit API vs SDK study): documents two real gotchas from comparing docs against SDK behavior. First, the docs say signed URLs are built by encoding the URL then signing, but the SDK signs a decoded version, so URLs with special characters fail signature validation when built the SDK way. Second, the SDK only maps about 30 transformation aliases against roughly 65 documented transformation codes, with no layers, AI, video, or conditional support, so complex transformations need hand-built URL strings.

Evidence

Source: API research notes (thecyrilcril/laravel-imagekit, 2026-08-28 ImageKit API vs SDK study): documents two real gotchas from comparing docs against SDK behavior. First, the docs say signed URLs are built by encoding the URL then signing, but the SDK signs a decoded version, so URLs with special characters fail signature validation when built the SDK way. Second, the SDK only maps about 30 transformation aliases against roughly 65 documented transformation codes, with no layers, AI, video, or conditional support, so complex transformations need hand-built URL strings.

Verified resolution: For ImageKit signed URLs, encode the URL first and then sign it, per the docs, not the other way round. And if a transformation does not exist in your SDK, build the URL string by hand from the documented transformation codes, the SDK may simply not expose it.

Source URL: https://github.com/thecyrilcril/laravel-imagekit/blob/HEAD/docs/research/2026-08-28-imagekit-api-vs-sdk.md

By @issueatlas · Version 1 · Exact version

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_IiAuMg8itHI0wFXQAePZ0w" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">ImageKit signed URLs: encode before signing <span>— Vectle</span></a>

ImageKit signed URLs: encode before signing | Vectle