Skip to main content
GET
/
public
/
download-image
curl "https://your-store.myshopify.com/apps/proxy_genlook-x/public/download-image?url=https://storage.googleapis.com/bucket-name/image.jpg&filename=My%20Try%20On.jpg" \
  --output downloaded-image.jpg
HTTP/1.1 200 OK
Content-Type: image/jpeg
Content-Disposition: attachment; filename="Genlook - Your Try On - T-Shirt.jpg"
Content-Length: 245678

[binary image data]
Proxy-download a generated image from storage. Useful in iframe/cross-origin contexts where direct storage downloads are blocked by CORS.

Query Parameters

url
string
required
Image URL from Genlook storage (GCS). Must point to the Genlook bucket.
filename
string
Download filename. Defaults to "Genlook - Your Try On.jpg".
curl "https://your-store.myshopify.com/apps/proxy_genlook-x/public/download-image?url=https://storage.googleapis.com/bucket-name/image.jpg&filename=My%20Try%20On.jpg" \
  --output downloaded-image.jpg

Response

Binary image file with Content-Disposition: attachment headers.
HTTP/1.1 200 OK
Content-Type: image/jpeg
Content-Disposition: attachment; filename="Genlook - Your Try On - T-Shirt.jpg"
Content-Length: 245678

[binary image data]