eexit / ghost-storage-cloudinary

:rocket: A fully-featured and deeply tested Cloudinary Ghost storage adapter
https://ghost.org/integrations/cloudinary/
81 stars 21 forks source link

Format option not working #119

Closed yogeshbeniwal closed 3 years ago

yogeshbeniwal commented 3 years ago

Adding both options for format and quality is resulting in wrong URL of https://res-2.cloudinary.com/NAME/image/upload/q_auto/v1/blog/2021/02/Testing.png.auto instead of https://res-2.cloudinary.com/NAME/image/upload/q_auto,f_auto/v1/blog/2021/02/Testing.png

Below is the configuration used for Fetch section.

  "fetch": {
    "format": "auto",
    "quality": "auto",
    "secure": true,
    "cdn_subdomain": true

}

joelgoodman commented 3 years ago

@yogeshbeniwal I ran into this and did some digging. If you check the Cloudinary Node docs, you want to use "fetch_format" as the key.