How to replace an image in cloudinary and keep the same URL?
I have an image in cloudinary that I would like to replace but keep the original URL. Would it be possible?
image-manipulation cloudinary
add a comment |
I have an image in cloudinary that I would like to replace but keep the original URL. Would it be possible?
image-manipulation cloudinary
You should check out ImageKit.io. What you have asked is fairly easy with a global setting. Do check our plans, you will love it. Disclaimer: I am the co-founder.
– manu4543
Dec 26 '17 at 5:25
add a comment |
I have an image in cloudinary that I would like to replace but keep the original URL. Would it be possible?
image-manipulation cloudinary
I have an image in cloudinary that I would like to replace but keep the original URL. Would it be possible?
image-manipulation cloudinary
image-manipulation cloudinary
asked Dec 25 '17 at 15:35
SvitlanaSvitlana
1,31131322
1,31131322
You should check out ImageKit.io. What you have asked is fairly easy with a global setting. Do check our plans, you will love it. Disclaimer: I am the co-founder.
– manu4543
Dec 26 '17 at 5:25
add a comment |
You should check out ImageKit.io. What you have asked is fairly easy with a global setting. Do check our plans, you will love it. Disclaimer: I am the co-founder.
– manu4543
Dec 26 '17 at 5:25
You should check out ImageKit.io. What you have asked is fairly easy with a global setting. Do check our plans, you will love it. Disclaimer: I am the co-founder.
– manu4543
Dec 26 '17 at 5:25
You should check out ImageKit.io. What you have asked is fairly easy with a global setting. Do check our plans, you will love it. Disclaimer: I am the co-founder.
– manu4543
Dec 26 '17 at 5:25
add a comment |
2 Answers
2
active
oldest
votes
Yes it is possible to update an image and keep the same URL.
When you upload the new image you want to make its public_id be the same as the existing image you're trying to replace. Then your Cloudinary account will be updated with the new image overriding the old one.
However note that if the original (older) image was already accessed, it might get cached in the CDN.
Here is a helpful article for further reading on how to update already existing images and how you can invalidate your resources on the CDN if need be:
https://support.cloudinary.com/hc/en-us/articles/202520852-How-can-I-update-an-already-uploaded-image-
Thank you, but how to do exactly this part: "When you upload the new image you want to make its public_id be the same as the existing image you're trying to replace"
– Svitlana
Dec 27 '17 at 23:33
1
You can do so by uploading the new image in the Media Library and giving it the same public id as the old image. This should ask you if you want to overwrite the image. You can also use the upload API and specify the public id in the upload as follows (here is a Ruby example): Cloudinary::Uploader.upload(filename, options = {public_id: "insert_here"}) This will replace the old image upon upload.
– Marissa
Dec 29 '17 at 1:33
add a comment |
I'd comment, but I don't have the rep.
Things might have changed in the UI that make Marissa's answer slightly inaccurate (at least for doing it thr. When I attempted to create a new image with the same public ID, it didn't ask me to overwrite the old one, it just gave it the public ID I submitted and appended it with "-1".
In order to create a new image at the same URL as I had it previously, I had to delete the old image, log out and log back in to cloudinary, and then create a new image with the same public ID (the public ID option appears if you click on advanced at the bottom of the upload window).
Just remember you need to delete the version from the URL ( "/vXXXXXX" where X is a number).
I just tested uploading an image to my account from the Media library with the same name as already existing name and it asked me whether or not I want to replace the original image. Are you using any upload preset? Cloudinary adds random string suffix if a public id already exists in the account and not number.
– Aditi Madan
Nov 15 '18 at 23:26
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f47969981%2fhow-to-replace-an-image-in-cloudinary-and-keep-the-same-url%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
Yes it is possible to update an image and keep the same URL.
When you upload the new image you want to make its public_id be the same as the existing image you're trying to replace. Then your Cloudinary account will be updated with the new image overriding the old one.
However note that if the original (older) image was already accessed, it might get cached in the CDN.
Here is a helpful article for further reading on how to update already existing images and how you can invalidate your resources on the CDN if need be:
https://support.cloudinary.com/hc/en-us/articles/202520852-How-can-I-update-an-already-uploaded-image-
Thank you, but how to do exactly this part: "When you upload the new image you want to make its public_id be the same as the existing image you're trying to replace"
– Svitlana
Dec 27 '17 at 23:33
1
You can do so by uploading the new image in the Media Library and giving it the same public id as the old image. This should ask you if you want to overwrite the image. You can also use the upload API and specify the public id in the upload as follows (here is a Ruby example): Cloudinary::Uploader.upload(filename, options = {public_id: "insert_here"}) This will replace the old image upon upload.
– Marissa
Dec 29 '17 at 1:33
add a comment |
Yes it is possible to update an image and keep the same URL.
When you upload the new image you want to make its public_id be the same as the existing image you're trying to replace. Then your Cloudinary account will be updated with the new image overriding the old one.
However note that if the original (older) image was already accessed, it might get cached in the CDN.
Here is a helpful article for further reading on how to update already existing images and how you can invalidate your resources on the CDN if need be:
https://support.cloudinary.com/hc/en-us/articles/202520852-How-can-I-update-an-already-uploaded-image-
Thank you, but how to do exactly this part: "When you upload the new image you want to make its public_id be the same as the existing image you're trying to replace"
– Svitlana
Dec 27 '17 at 23:33
1
You can do so by uploading the new image in the Media Library and giving it the same public id as the old image. This should ask you if you want to overwrite the image. You can also use the upload API and specify the public id in the upload as follows (here is a Ruby example): Cloudinary::Uploader.upload(filename, options = {public_id: "insert_here"}) This will replace the old image upon upload.
– Marissa
Dec 29 '17 at 1:33
add a comment |
Yes it is possible to update an image and keep the same URL.
When you upload the new image you want to make its public_id be the same as the existing image you're trying to replace. Then your Cloudinary account will be updated with the new image overriding the old one.
However note that if the original (older) image was already accessed, it might get cached in the CDN.
Here is a helpful article for further reading on how to update already existing images and how you can invalidate your resources on the CDN if need be:
https://support.cloudinary.com/hc/en-us/articles/202520852-How-can-I-update-an-already-uploaded-image-
Yes it is possible to update an image and keep the same URL.
When you upload the new image you want to make its public_id be the same as the existing image you're trying to replace. Then your Cloudinary account will be updated with the new image overriding the old one.
However note that if the original (older) image was already accessed, it might get cached in the CDN.
Here is a helpful article for further reading on how to update already existing images and how you can invalidate your resources on the CDN if need be:
https://support.cloudinary.com/hc/en-us/articles/202520852-How-can-I-update-an-already-uploaded-image-
answered Dec 27 '17 at 18:35
MarissaMarissa
662
662
Thank you, but how to do exactly this part: "When you upload the new image you want to make its public_id be the same as the existing image you're trying to replace"
– Svitlana
Dec 27 '17 at 23:33
1
You can do so by uploading the new image in the Media Library and giving it the same public id as the old image. This should ask you if you want to overwrite the image. You can also use the upload API and specify the public id in the upload as follows (here is a Ruby example): Cloudinary::Uploader.upload(filename, options = {public_id: "insert_here"}) This will replace the old image upon upload.
– Marissa
Dec 29 '17 at 1:33
add a comment |
Thank you, but how to do exactly this part: "When you upload the new image you want to make its public_id be the same as the existing image you're trying to replace"
– Svitlana
Dec 27 '17 at 23:33
1
You can do so by uploading the new image in the Media Library and giving it the same public id as the old image. This should ask you if you want to overwrite the image. You can also use the upload API and specify the public id in the upload as follows (here is a Ruby example): Cloudinary::Uploader.upload(filename, options = {public_id: "insert_here"}) This will replace the old image upon upload.
– Marissa
Dec 29 '17 at 1:33
Thank you, but how to do exactly this part: "When you upload the new image you want to make its public_id be the same as the existing image you're trying to replace"
– Svitlana
Dec 27 '17 at 23:33
Thank you, but how to do exactly this part: "When you upload the new image you want to make its public_id be the same as the existing image you're trying to replace"
– Svitlana
Dec 27 '17 at 23:33
1
1
You can do so by uploading the new image in the Media Library and giving it the same public id as the old image. This should ask you if you want to overwrite the image. You can also use the upload API and specify the public id in the upload as follows (here is a Ruby example): Cloudinary::Uploader.upload(filename, options = {public_id: "insert_here"}) This will replace the old image upon upload.
– Marissa
Dec 29 '17 at 1:33
You can do so by uploading the new image in the Media Library and giving it the same public id as the old image. This should ask you if you want to overwrite the image. You can also use the upload API and specify the public id in the upload as follows (here is a Ruby example): Cloudinary::Uploader.upload(filename, options = {public_id: "insert_here"}) This will replace the old image upon upload.
– Marissa
Dec 29 '17 at 1:33
add a comment |
I'd comment, but I don't have the rep.
Things might have changed in the UI that make Marissa's answer slightly inaccurate (at least for doing it thr. When I attempted to create a new image with the same public ID, it didn't ask me to overwrite the old one, it just gave it the public ID I submitted and appended it with "-1".
In order to create a new image at the same URL as I had it previously, I had to delete the old image, log out and log back in to cloudinary, and then create a new image with the same public ID (the public ID option appears if you click on advanced at the bottom of the upload window).
Just remember you need to delete the version from the URL ( "/vXXXXXX" where X is a number).
I just tested uploading an image to my account from the Media library with the same name as already existing name and it asked me whether or not I want to replace the original image. Are you using any upload preset? Cloudinary adds random string suffix if a public id already exists in the account and not number.
– Aditi Madan
Nov 15 '18 at 23:26
add a comment |
I'd comment, but I don't have the rep.
Things might have changed in the UI that make Marissa's answer slightly inaccurate (at least for doing it thr. When I attempted to create a new image with the same public ID, it didn't ask me to overwrite the old one, it just gave it the public ID I submitted and appended it with "-1".
In order to create a new image at the same URL as I had it previously, I had to delete the old image, log out and log back in to cloudinary, and then create a new image with the same public ID (the public ID option appears if you click on advanced at the bottom of the upload window).
Just remember you need to delete the version from the URL ( "/vXXXXXX" where X is a number).
I just tested uploading an image to my account from the Media library with the same name as already existing name and it asked me whether or not I want to replace the original image. Are you using any upload preset? Cloudinary adds random string suffix if a public id already exists in the account and not number.
– Aditi Madan
Nov 15 '18 at 23:26
add a comment |
I'd comment, but I don't have the rep.
Things might have changed in the UI that make Marissa's answer slightly inaccurate (at least for doing it thr. When I attempted to create a new image with the same public ID, it didn't ask me to overwrite the old one, it just gave it the public ID I submitted and appended it with "-1".
In order to create a new image at the same URL as I had it previously, I had to delete the old image, log out and log back in to cloudinary, and then create a new image with the same public ID (the public ID option appears if you click on advanced at the bottom of the upload window).
Just remember you need to delete the version from the URL ( "/vXXXXXX" where X is a number).
I'd comment, but I don't have the rep.
Things might have changed in the UI that make Marissa's answer slightly inaccurate (at least for doing it thr. When I attempted to create a new image with the same public ID, it didn't ask me to overwrite the old one, it just gave it the public ID I submitted and appended it with "-1".
In order to create a new image at the same URL as I had it previously, I had to delete the old image, log out and log back in to cloudinary, and then create a new image with the same public ID (the public ID option appears if you click on advanced at the bottom of the upload window).
Just remember you need to delete the version from the URL ( "/vXXXXXX" where X is a number).
answered Nov 15 '18 at 22:50
mborgermborger
214
214
I just tested uploading an image to my account from the Media library with the same name as already existing name and it asked me whether or not I want to replace the original image. Are you using any upload preset? Cloudinary adds random string suffix if a public id already exists in the account and not number.
– Aditi Madan
Nov 15 '18 at 23:26
add a comment |
I just tested uploading an image to my account from the Media library with the same name as already existing name and it asked me whether or not I want to replace the original image. Are you using any upload preset? Cloudinary adds random string suffix if a public id already exists in the account and not number.
– Aditi Madan
Nov 15 '18 at 23:26
I just tested uploading an image to my account from the Media library with the same name as already existing name and it asked me whether or not I want to replace the original image. Are you using any upload preset? Cloudinary adds random string suffix if a public id already exists in the account and not number.
– Aditi Madan
Nov 15 '18 at 23:26
I just tested uploading an image to my account from the Media library with the same name as already existing name and it asked me whether or not I want to replace the original image. Are you using any upload preset? Cloudinary adds random string suffix if a public id already exists in the account and not number.
– Aditi Madan
Nov 15 '18 at 23:26
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f47969981%2fhow-to-replace-an-image-in-cloudinary-and-keep-the-same-url%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
You should check out ImageKit.io. What you have asked is fairly easy with a global setting. Do check our plans, you will love it. Disclaimer: I am the co-founder.
– manu4543
Dec 26 '17 at 5:25