{"id":41,"date":"2019-05-31T11:17:22","date_gmt":"2019-05-31T11:17:22","guid":{"rendered":"http:\/\/plugins.vjinfotech.com\/wordpress-import-export\/?post_type=ht_kb&#038;p=41"},"modified":"2024-12-25T05:11:50","modified_gmt":"2024-12-25T05:11:50","slug":"importing-images-from-urls","status":"publish","type":"ht_kb","link":"https:\/\/plugins.vjinfotech.com\/wordpress-import-export\/documentation\/importing-images-from-urls\/","title":{"rendered":"Importing Images From URLs"},"content":{"rendered":"\n<h4 class=\"wp-block-heading\" id=\"basic\" ><strong>Basic<\/strong><\/h4>\n\n\n\n<p>&nbsp;Simply follow the easy steps provided in the video.<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"Image Overview\" width=\"920\" height=\"518\" src=\"https:\/\/www.youtube.com\/embed\/DEMfKwPxZb8?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<p style=\"font-size:14px\"><\/p>\n\n\n\n<p>To import, select the <strong>Download from URL<\/strong> option. This allows you to bring in images from URLs starting with <strong>http:\/\/<\/strong> or <strong>https:\/\/<\/strong>.<\/p>\n\n\n\n<p><strong>Example URL:<\/strong><br><code>http:\/\/www.vjinfotech.com\/image.png<\/code><\/p>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"525\" height=\"1024\" src=\"https:\/\/plugins.vjinfotech.com\/wordpress-import-export\/wp-content\/uploads\/2019\/05\/1-6-525x1024.png\" alt=\"\" class=\"wp-image-1513\" srcset=\"https:\/\/plugins.vjinfotech.com\/wordpress-import-export\/wp-content\/uploads\/2019\/05\/1-6-525x1024.png 525w, https:\/\/plugins.vjinfotech.com\/wordpress-import-export\/wp-content\/uploads\/2019\/05\/1-6-154x300.png 154w, https:\/\/plugins.vjinfotech.com\/wordpress-import-export\/wp-content\/uploads\/2019\/05\/1-6-26x50.png 26w, https:\/\/plugins.vjinfotech.com\/wordpress-import-export\/wp-content\/uploads\/2019\/05\/1-6-600x1170.png 600w, https:\/\/plugins.vjinfotech.com\/wordpress-import-export\/wp-content\/uploads\/2019\/05\/1-6-320x624.png 320w, https:\/\/plugins.vjinfotech.com\/wordpress-import-export\/wp-content\/uploads\/2019\/05\/1-6.png 648w\" sizes=\"auto, (max-width: 525px) 100vw, 525px\" \/><\/figure>\n\n\n\n<p style=\"font-size:14px\"><\/p>\n\n\n\n<p><strong>Troubleshooting Image Import Issues<\/strong><\/p>\n\n\n\n<p>If your images aren\u2019t importing as expected, it\u2019s usually because the URLs don\u2019t actually link to valid images Or, that the URLs are separated by the separator character you\u2019ve specified.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p><\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"constructing-image-urls-from-file-names\" ><strong>Constructing Image URLs from File Names<\/strong><\/h4>\n\n\n\n<p>If your XML or CSV file contains only the image file name (without the full URL), you&#8217;ll need to construct the URL by appending the image file name to the folder\u2019s URL where the image is stored.<\/p>\n\n\n\n<p><strong>Example in Your File:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>&lt;image&gt;my-image-name.jpg&lt;\/image&gt;<br><\/code><\/pre>\n\n\n\n<p><strong>Resulting Image URL:<\/strong><br><code>http:\/\/example.com\/my-folder\/my-image-name.jpg<\/code><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p><\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"importing-from-attributes\" ><strong>Importing From Attributes<\/strong><\/h4>\n\n\n\n<p>If your images are stored as attributes rather than elements, remember to drag the <strong>attribute<\/strong> directly, not the element itself. <em>(Note: Attributes are only available in XML files.)<\/em><\/p>\n\n\n\n<p><strong>What is an Attribute?<\/strong><\/p>\n\n\n\n<p>Attributes look like this in XML:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>&lt;element attribute=\"http:\/\/example.com\/image-1.jpg\" \/&gt;<br><\/code><\/pre>\n\n\n\n<p>If your image URLs are stored in attributes rather than elements, make sure to drag the <strong>attribute<\/strong> to the image URLs textareabox, not the <strong>element<\/strong>.<\/p>\n\n\n\n<p><strong>Example:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>&lt;img url=\"http:\/\/example.com\/image-1.jpg\" \/&gt;<br><\/code><\/pre>\n\n\n\n<p>In this case, drag url to the image URLs textbox so it displays <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-black-color\">{img[1]\/@url}<\/mark>, rather than <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-black-color\">{img[1]}<\/mark>.<\/p>\n","protected":false},"author":1,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"ht_kb_category":[4],"ht_kb_tag":[],"class_list":["post-41","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-importing-images"],"_links":{"self":[{"href":"https:\/\/plugins.vjinfotech.com\/wordpress-import-export\/wp-json\/wp\/v2\/ht_kb\/41","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/plugins.vjinfotech.com\/wordpress-import-export\/wp-json\/wp\/v2\/ht_kb"}],"about":[{"href":"https:\/\/plugins.vjinfotech.com\/wordpress-import-export\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/plugins.vjinfotech.com\/wordpress-import-export\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/plugins.vjinfotech.com\/wordpress-import-export\/wp-json\/wp\/v2\/comments?post=41"}],"version-history":[{"count":17,"href":"https:\/\/plugins.vjinfotech.com\/wordpress-import-export\/wp-json\/wp\/v2\/ht_kb\/41\/revisions"}],"predecessor-version":[{"id":1786,"href":"https:\/\/plugins.vjinfotech.com\/wordpress-import-export\/wp-json\/wp\/v2\/ht_kb\/41\/revisions\/1786"}],"wp:attachment":[{"href":"https:\/\/plugins.vjinfotech.com\/wordpress-import-export\/wp-json\/wp\/v2\/media?parent=41"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/plugins.vjinfotech.com\/wordpress-import-export\/wp-json\/wp\/v2\/ht_kb_category?post=41"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/plugins.vjinfotech.com\/wordpress-import-export\/wp-json\/wp\/v2\/ht_kb_tag?post=41"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}