Makes local copies of all the linked images and pdfs in a post, adding them as gallery attachments.
Makes local copies of all the linked images and pdfs in a post, adding them as gallery attachments.
Source & support:
https://github.com/ryanpcmcquen/import-external-attachments
This plugin is based on the work done in the “Import External Images” plugin by MartyThornley.
https://github.com/MartyThornley
HTTPS support added by IvanDoomer:
https://github.com/IvanDoomer
PDF support added by bengreeley:
https://github.com/bengreeley
Most of the JavaScript was rewritten from the original plugin, to reduce the
number of global variables.
The plugin examines the HTML source of your post when you save it, inspecting each IMG tag, and processing them according to the options you have selected.
Under the default settings, it will find IMG tags with links to images on other web sites and copy those images to your web site, updating the IMG src to point to your copy.
PDF functionality was added by bengreeley.
Yes! It was developed and built (and is used everyday) at PhotographyBlogSites.com – a multisite install.
You can make it ignore any domain you want on the settings page, in case you work with a CDN or photo hosting site and want to keep those images where they are.
.doc
and .docx
files.$_GET['post']
but casting it to int
.Add .jpeg support.
Remove duplicate README.
Fix some typos.
Add GitHub link.
Fix naming.
Make import_images_start_time a function. Hopefully it works now. :^)
Make import_images_start_time globally accessible.
General cleanup.
Merged upstream pull requests from bengreeley and IvanDoomer and changed to ‘Import external attachments’.
Now supports PDFs and HTTPS!
Fixed case sensitivity, thanks to https://github.com/SidFerreira
Fixed duplicate EXTERNAL_IMAGES_DIR notice
Fixed title in readme.