Transfer CloudFlare Images to a different CF Images account

I would like to export all my Cloudflare Images from one account and transfer them to a new Cloudflare Images account that I setup for a client.

The source account hash is: 50Scittxwu-W_pIpiMti0w/attqQ4CxAbauSp5Ha

And the destination account is: 0514b7bf353555c4ca73c17bacbc04ca

I tried doing this via the API upload via URL endpoint:

curl --request POST "https://api.cloudflare.com/client/v4/accounts/0514b7bf353555c4ca73c17bacbc04ca/images/v1" \ --header 'Authorization: Bearer <API KEY REDACTED>' \ --form 'url=https://imagedelivery.net/50Scittxwu-W_pIpiMti0w/attqQ4CxAbauSp5Ha/public' \ --form 'id=<CUSTOM IMAGE ID REDACTED>'

But I get the following error:

ERROR 5454: Error during the fetch, code: 400, message: Fetching image from imagedelivery.net is not supported

Is there another simple way to do this transfer other than downloading all the images (about 1700 of them) and manually re-uploading to the new account?

Hey, we don’t support image migration between accounts, in fact this is the first request of this type.

I know this is not an answer your are looking for, but 1700 images is not that many.
You can also create a worker to fetch blob from api and then upload it back, if you don’t want to move bytes out of Cloudflare.

2 Likes

This topic was automatically closed after 15 days. New replies are no longer allowed.