eexit / ghost-storage-cloudinary

:rocket: A fully-featured and deeply tested Cloudinary Ghost storage adapter

Home Page:https://ghost.org/integrations/cloudinary/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Image appears duplicated on upload

carloscuesta opened this issue · comments

Hello @eexit!

I found out a little problem while uploading images using ghost-cloudinary-storage. Every time I upload a new image from Ghost, it appears uploaded twice on the Cloudinary dashboard.

I've been looking at the Console to see if the request was made twice but seems that is firing only once 🤔

Screenshot 2019-09-11 at 22 44 37

Screenshot 2019-09-11 at 22 44 50

This is my configuration file:

"storage": {
    "active": "ghost-storage-cloudinary",
    "ghost-storage-cloudinary": {
      "cloud_name": "removed",
      "api_key": "removed",
      "api_secret": "removed",
      "configuration": {
        "image": {
          "secure": true
        },
        "file": {}
      }
    }
  },

Thanks!

Hi @carloscuesta,

Thanks for reporting this. Indeed, Ghost now provides native image optimization and thus saves the original images with a _o prefix.

In order to disable this, you need to set false here.
See https://ghost.org/docs/concepts/config/#image-optimisation.

I'm gonna update the sample config file.

Oh! My bad for not searching a little bit more about this, thanks for the quick response! 🙏