- Export your Ghost content (aka backup)
- Open in an editor that support Regex find/replace
- Search for:
/content/images/\d{4}/(\w{3}|\d{2})/
- Replace by:
http://res.cloudinary.com/{cloud-name}/image/upload/{transformations}/{folder}/
It is adived to create a named tranformation in Cloudinary and use it in the URL so if you want to change what the transformation does, you can simply update the named transformation in Cloudinary instead of updating all your Cloudinary URL in your blog.
Hi. I found your gist quite useful, as I have a ghost site with thousands of images.
I'd like to make a small change to it. As throwing an error doesn't help me, because it used to happen after a lot of pics from many folders, so restarting the whole process takes a lot of time.
So I modified the script to just show a log and add _duplicate to the file name. That way, when everything's finished, I can manually search in cloudinary for files with duplicate in their name, and deal with them accordingly.