diff --git a/ghost/admin/app/components/gh-unsplash-photo.js b/ghost/admin/app/components/gh-unsplash-photo.js index 567fd16661..5eccc210ab 100644 --- a/ghost/admin/app/components/gh-unsplash-photo.js +++ b/ghost/admin/app/components/gh-unsplash-photo.js @@ -40,7 +40,7 @@ export default Component.extend({ imageUrl: computed('photo.urls.regular', function () { let url = this.get('photo.urls.regular'); - url = url.replace(/&w=1080/, '&w=1200'); + url = url.replace('&w=1080', '&w=1200'); return url; }), diff --git a/ghost/admin/app/components/gh-unsplash.js b/ghost/admin/app/components/gh-unsplash.js index 60649ba1ed..6c939fdf77 100644 --- a/ghost/admin/app/components/gh-unsplash.js +++ b/ghost/admin/app/components/gh-unsplash.js @@ -78,7 +78,7 @@ export default Component.extend(ShortcutsMixin, { this.unsplash.triggerDownload(photo); let selectParams = { - src: photo.urls.regular, + src: photo.urls.regular.replace(/&w=1080/, '&w=2000'), alt: photo.description || '', caption: `Photo by ${photo.user.name} / Unsplash` };