Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image appears duplicated on upload #50

Closed
carloscuesta opened this issue Sep 11, 2019 · 2 comments
Closed

Image appears duplicated on upload #50

carloscuesta opened this issue Sep 11, 2019 · 2 comments

Comments

@carloscuesta
Copy link

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!

@eexit
Copy link
Owner

eexit commented Sep 11, 2019

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.

@eexit eexit closed this as completed Sep 11, 2019
@carloscuesta
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants