Update on the URL migration, May 15th 2024
The work described below will be under way shortly. For further updates, we'll be maintaining the update log in the main post for the Imgur migration.
We're moving into the next phase of our work to replace Imgur with our new in-house image hosting service. All image uploaders network-wide now use our new image hosting service, and so our work is nearing completion.
Starting the week of May 13, 2024, we'll begin rolling out updates to replace Imgur links with the new i.sstatic.net
domain we develop and maintain.
What's changing
We will be updating Imgur URLs appearing in post bodies, comments, chat posts, and other significant text fields across the network. The URLs will change in the following way.
Old Imgur image URL format:
https://i.stack.imgur.com/<image ID>.<extension>
New self-hosted image URL format:
https://i.sstatic.net/<same image ID>.<extension>
We'll update rows of data containing valid Imgur URLs: i.e.
https://i.sstatic.net/0000Q.png
We'll be replacing the actual domain portion of the URL: i.e.
i.stack.imgur.com
→i.sstatic.net
Any resize characters or query params on the image will remain intact and continue to work on the new domain.
What won't change
Instances of the word "Imgur" that are not part of a URL or don't otherwise look like an image link will not change. Additionally, image links across the network that load images from sites other than i.stack.imgur.com
won’t change either.
Other information and errata
As with our previous http → https conversion, we are not creating a new post revision, and we'll be updating historical values in post revision histories as well. This is because image URLs should continue to resolve to the same image whether or not
i.stack.imgur.com
is the site serving them. Therefore, there should be no issues covering edit rollbacks and revision comparisons. It also avoids making explicit edits that would otherwise bump a post, unlock a post’s upvotes and downvotes, and otherwise disrupt the site.Once the migration is complete, we’ll work with Imgur to redirect traffic to the appropriate images on our servers. But updating the actual data is the only guarantee we have complete control over how images resolve for the long term.
Posts that happen to contain an
i.stack.imgur.com
URL but don't actually intend to link to that resource will also change as part of this update. For example, Code Golf exercises may change, and even this very meta post describing the link transition may change. These represent a small amount of cases across the network. However, as this process may alter important URLs, we ask that if you do notice an obvious error, kindly make or suggest an edit to fix it. Due to decision #1 above, there may not be a simple way for users to verify the previous state, so use your best judgment.
We will, of course, keep a database backup in case something has gone seriously wrong and needs significant intervention to fix.
Something's weird. What should I do?
If you notice anything odd, please feel free to leave a bug report here, or create a new meta post using the tag image-uploader. While we will be reviewing every bug and feature request about our new image hosting service, our primary goal will be to quash serious issues, so that we can ensure the deployment goes smoothly and works as intended.
The rollout starts next week
Similar to the initial rollout of the new image service, we are planning a staged rollout for updates to image URLs, beginning early next week. We also have some special handling in place for sites like Stack Overflow to avoid any site interruptions due to the size of the affected tables, and we'll update this post when we start rolling changes out.
REPLACE(body, 'i.stack.imgur.com', 'i.sstatic.net')
is done?https://i.stack.imgur.com/<image ID>.<extension>
URL anywhere within it. The image ID has to match the format of a "real" image ID, too. If the post contains any matching Imgur image URL in it, then yes, it's essentially a find-and-replace on//i.stack.imgur.com/
(slashes included). If the image ID looks "real" but doesn't actually point to an image, the post will still qualify for updating. Therefore, in some cases, a bare reference to i.stack.imgur.com might change.target=_blank
.