{"id":99887,"date":"2012-10-12T10:00:50","date_gmt":"2012-10-12T14:00:50","guid":{"rendered":"http:\/\/wpmu.org\/?p=99887"},"modified":"2012-10-12T11:55:44","modified_gmt":"2012-10-12T15:55:44","slug":"download-remote-images-into-wordpress","status":"publish","type":"post","link":"https:\/\/wpmudev.com\/blog\/download-remote-images-into-wordpress\/","title":{"rendered":"Automatically Download Remote Images to Your WordPress Media Gallery"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-99889\" title=\"automatically-download-images-big\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2012\/10\/automatically-download-images-big.jpg\" alt=\"Post image\" aria-hidden=\"true\" width=\"692\" height=\"462\" \/><br \/>\nInserting images that reside on another site like Flickr, for example, is easy to do in WordPress. You simply put the URL of the image in the designated spot in the media uploader.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-99892\" title=\"add-image-url\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2012\/10\/add-image-url.jpg\" alt=\"Post image\" aria-hidden=\"true\" width=\"692\" height=\"484\" \/><\/p>\n<p>While that\u2019s easy enough, using offsite images that you don\u2019t have full control over can be a problem. If the remote image is moved or deleted from its original spot, then your site has a big hole where the image should have been.<\/p>\n<p>If you aren\u2019t linking to the image to save server space, then obviously it would be better to download the image to your WordPress media library. That, however, can be a pain.<\/p>\n<p>Fortunately, there are plugins that will do this work for you automatically. We\u2019ll go through four that we found below.<\/p>\n<p>&nbsp;<\/p>\n<h2><strong>1. Autosave Remote Images<\/strong><\/h2>\n<p>The <a href=\"http:\/\/wordpress.org\/extend\/plugins\/auto-save-remote-images\/\" rel=\"noopener\" target=\"_blank\">Autosave Remote Images<\/a> plugin looks for the first off-site image in your post; it then downloads it, adds it to your media gallery, and automatically sets it as the Featured Image for the post. It will also download any other remote images into your media gallery.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-99893\" title=\"autosave-remote-images\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2012\/10\/autosave-remote-images.jpg\" alt=\"Post image\" aria-hidden=\"true\" width=\"699\" height=\"578\" \/><\/p>\n<p>&nbsp;<\/p>\n\n<p>&nbsp;<\/p>\n<h2><strong>2. DX Auto Save Images<\/strong><\/h2>\n<p>The <a href=\"http:\/\/wordpress.org\/extend\/plugins\/dx-auto-save-images\/\" rel=\"noopener\" target=\"_blank\">DX Auto Save Images<\/a> plugin pulls in remote images, saves them to your media library, and then also makes them available for thumbnails if your theme happens to use thumbnails. Unlike the Autosave Remote Images plugin above, it does not automatically make the first image a featured image.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-99894\" title=\"dx-auto-save-images\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2012\/10\/dx-auto-save-images.jpg\" alt=\"Post image\" aria-hidden=\"true\" width=\"700\" height=\"310\" \/><\/p>\n<p>&nbsp;<\/p>\n<h2><strong>3. Hacklog Remote Image Autosave<\/strong><\/h2>\n<p>The <a href=\"http:\/\/wordpress.org\/extend\/plugins\/hacklog-remote-image-autosave\/\" rel=\"noopener\" target=\"_blank\">Hacklog Remote Image Autosave<\/a> plugin also downloads remote images and makes them ready for thumbnail use. However, it comes with a little more control, offering some sizing options on its setting page.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-99895\" title=\"hacklog-remote-image-autosave\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2012\/10\/hacklog-remote-image-autosave.jpg\" alt=\"Post image\" aria-hidden=\"true\" width=\"700\" height=\"373\" \/><\/p>\n<p>One thing to know about this plugin is that it requires that you click on a button that it adds to your editor in order to download the image to your media library. It\u2019s very quick, but it is one extra step.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-99897\" title=\"hacklog-remote-image-autosave-toolbar\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2012\/10\/hacklog-remote-image-autosave-toolbar.jpg\" alt=\"Post image\" aria-hidden=\"true\" width=\"698\" height=\"528\" \/><\/p>\n<p>&nbsp;<\/p>\n\n<p>&nbsp;<\/p>\n<h2><strong>4. Hot Linked Image Cacher with Keywords<\/strong><\/h2>\n<p>The <a href=\"http:\/\/wordpress.org\/extend\/plugins\/hot-linked-image-cacher-with-keywords\/\" rel=\"noopener\" target=\"_blank\">Hot Linked Image Cacher with Keywords<\/a> plugin offers downloading of remote images and storing them for use as thumbnails, but what really makes this plugin unique is that it also offers the ability to <strong>download remote images for posts created before the plugin was installed<\/strong>.<\/p>\n<p>I tested this feature, and it worked, but it was only a test on a limited amount of posts. So I really have no idea how this will work out for someone with lots of posts to process.<\/p>\n<p>This plugin also lets you put in a list of keywords, and it will randomly name the images with those keywords. So, for example, if you put in the keywords red, green, yellow. It will name your images red.jpg, green.jpg, and yellow.jpg. If it runs out of keywords, it will begin adding numbers to the end, for example, red1.jpg.<\/p>\n<p>Here\u2019s a look at the settings for downloading images on older posts. (Not much there. It gives no other indications of what\u2019s going on or what\u2019s already happened.)<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-99898\" title=\"hotlinked-cacher-settings\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2012\/10\/hotlinked-cacher-settings.jpg\" alt=\"Post image\" aria-hidden=\"true\" width=\"694\" height=\"543\" \/>And here\u2019s a look a look at the settings box if you\u2019d like the plugin to name your images with your selected keywords.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-99899\" title=\"hotlinked-cacher-settings2\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2012\/10\/hotlinked-cacher-settings2.jpg\" alt=\"Post image\" aria-hidden=\"true\" width=\"693\" height=\"479\" \/><\/p>\n<p>&nbsp;<\/p>\n\n<p>Photos: <a href=\"http:\/\/www.flickr.com\/photos\/the_ewan\/3958779607\/sizes\/m\/in\/photostream\/\" target=\"_blank\">The Ewan<\/a> , <a href=\"http:\/\/www.flickr.com\/photos\/87866532@N04\/8074168006\/sizes\/m\/in\/photostream\/\" target=\"_blank\">Carriagehouse2011<\/a>, <a href=\"http:\/\/www.flickr.com\/photos\/jamieanne\/4086953344\/sizes\/m\/in\/photostream\/\" target=\"_blank\">jamieanne<\/a>, <a href=\"http:\/\/www.flickr.com\/photos\/stevier\/3866472394\/sizes\/m\/in\/photostream\/\" target=\"_blank\">Stevie Rocco<\/a>, <a href=\"http:\/\/www.flickr.com\/photos\/sanbeiji\/397383045\/sizes\/m\/in\/photostream\/\" target=\"_blank\">sanbeiji<\/a><\/p>\n<p>Photo: <a href=\"http:\/\/www.bigstockphoto.com\/image-9827540\/stock-photo-beautiful-sceneries-in-photos-on-green-field-background\" target=\"_blank\">Beautiful Sceneries in Photos on Green Field Background<\/a> from BigStock<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you use offsite images, now you can get a plugin to download them automatically.<\/p>\n","protected":false},"author":84404,"featured_media":99891,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"blog_reading_time":"","wds_primary_category":0,"wds_primary_tutorials_categories":0,"footnotes":""},"categories":[4],"tags":[16],"tutorials_categories":[],"class_list":["post-99887","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-plugins","tag-images"],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts\/99887","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/users\/84404"}],"replies":[{"embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/comments?post=99887"}],"version-history":[{"count":1,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts\/99887\/revisions"}],"predecessor-version":[{"id":216545,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts\/99887\/revisions\/216545"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/media\/99891"}],"wp:attachment":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/media?parent=99887"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/categories?post=99887"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/tags?post=99887"},{"taxonomy":"tutorials_categories","embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/tutorials_categories?post=99887"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}