{"id":399893,"date":"2026-11-08T01:36:30","date_gmt":"2026-11-08T01:36:30","guid":{"rendered":"https:\/\/cn.wordpress.org\/plugins\/leimglocal\/"},"modified":"2026-11-08T01:36:18","modified_gmt":"2026-11-08T01:36:18","slug":"leimglocal","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/leimglocal\/","author":16982120,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.1.6","stable_tag":"1.1.6","tested":"7.1.4","requires":"5.0","requires_php":"7.4","requires_plugins":null,"header_name":"LeimgLocal","header_author":"\u8001\u848b\u548c\u4ed6\u7684\u4f19\u4f34\u4eec","header_description":"\u5c06\u7f16\u8f91\u5668\u4e2d\u7684\u5916\u90e8\u56fe\u7247\u672c\u5730\u5316\u5230\u5a92\u4f53\u5e93\uff0c\u652f\u6301\u4f20\u7edf\u7f16\u8f91\u5668\u4e0e\u53e4\u767b\u5821\uff0c\u652f\u6301\u7c98\u8d34\u622a\u56fe\u81ea\u52a8\u4e0a\u4f20\u3002","assets_banners_color":"eff6fd","last_updated":"2026-11-08 01:36:18","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/www.lezaiyun.com\/leimglocal.html","header_author_uri":"https:\/\/www.laojiang.me\/","rating":0,"author_block_rating":0,"active_installs":0,"downloads":96,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.1.6":{"tag":"1.1.6","author":"laobuluo","date":"2026-11-08 01:36:18","revision":3790352}},"upgrade_notice":[],"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3790352,"resolution":"128x128","location":"assets","locale":"","width":128,"height":122},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3790352,"resolution":"256x256","location":"assets","locale":"","width":256,"height":242}},"assets_banners":{"banner-772x250.png":{"filename":"banner-772x250.png","revision":3790352,"resolution":"772x250","location":"assets","locale":"","width":772,"height":250}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.1.6"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3790352,"resolution":"1","location":"assets","locale":"","width":1684,"height":1349},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3790352,"resolution":"2","location":"assets","locale":"","width":1998,"height":931}},"screenshots":[]},"plugin_section":[],"plugin_tags":[148076,163,6890,18126,4038],"plugin_category":[50],"plugin_contributors":[169988],"plugin_business_model":[],"class_list":["post-399893","plugin","type-plugin","status-publish","hentry","plugin_tags-gutenberg","plugin_tags-images","plugin_tags-localize","plugin_tags-paste","plugin_tags-screenshot","plugin_category-media","plugin_contributors-laobuluo","plugin_committers-laobuluo"],"banners":{"banner":"https:\/\/ps.w.org\/leimglocal\/assets\/banner-772x250.png?rev=3790352","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/leimglocal\/assets\/icon-128x128.png?rev=3790352","icon_2x":"https:\/\/ps.w.org\/leimglocal\/assets\/icon-256x256.png?rev=3790352","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/leimglocal\/assets\/screenshot-1.png?rev=3790352","caption":""},{"src":"https:\/\/ps.w.org\/leimglocal\/assets\/screenshot-2.png?rev=3790352","caption":""}],"raw_content":"<!--section=description-->\n<p>LeimgLocal downloads images that are linked from outside your site and stores them in the WordPress Media Library. It is meant for republishing articles, editing posts, and routine site maintenance.<\/p>\n\n<ul>\n<li>Download external images in the editor and replace them with local URLs.<\/li>\n<li>Works in both the Classic Editor (TinyMCE) and the Gutenberg block editor.<\/li>\n<li>Upload a pasted screenshot or clipboard image and insert it into the content. This can be turned off in the settings.<\/li>\n<li>Optional front-end lightbox. Only images that meet the minimum size can be opened.<\/li>\n<li>Limit the lightbox to post content so images in sidebars and other areas are left alone.<\/li>\n<li>Optional magnifying-glass badge, shown only on images that are large enough to open.<\/li>\n<li>A main on\/off switch so the features can be enabled per site.<\/li>\n<li>Follows WordPress coding practices and requires PHP 7.4 or newer.<\/li>\n<\/ul>\n\n<p>Plugin page: https:\/\/www.lezaiyun.com\/leimglocal.html\nDeveloper page: https:\/\/www.laojiang.me\/<\/p>\n\n<h3>Usage<\/h3>\n\n<ol>\n<li>Open a post (new or existing).<\/li>\n<li>Click the Localize Images button in the editor.<\/li>\n<li>Wait while external images are downloaded and replaced with local URLs.<\/li>\n<li>Click Update or Publish to save the post.<\/li>\n<\/ol>\n\n<p>To upload pasted screenshots automatically, enable that option under Settings \u2192 LeimgLocal.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the plugin folder to <code>\/wp-content\/plugins\/leimglocal<\/code>, or upload the ZIP from Plugins \u2192 Add New.<\/li>\n<li>Activate LeimgLocal on the Plugins screen.<\/li>\n<li>Optional: open Settings \u2192 LeimgLocal and configure automatic paste upload.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"does%20localizing%20images%20change%20a%20published%20post%20immediately%3F\"><h3>Does localizing images change a published post immediately?<\/h3><\/dt>\n<dd><p>The editor content is replaced only after you click Localize Images. The database is updated when you save the post.<\/p><\/dd>\n<dt id=\"a%20pasted%20screenshot%20was%20not%20uploaded.%20what%20should%20i%20check%3F\"><h3>A pasted screenshot was not uploaded. What should I check?<\/h3><\/dt>\n<dd><p>Confirm that \u201cUpload pasted images\u201d is enabled under Settings \u2192 LeimgLocal, and that the current user can upload files.<\/p><\/dd>\n<dt id=\"why%20do%20some%20images%20fail%20to%20download%3F\"><h3>Why do some images fail to download?<\/h3><\/dt>\n<dd><p>The image URL may be unreachable, protected by hotlink rules, blocked by the server network, or saved in an unsupported format. Check that the URL is publicly accessible.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.1.6<\/h4>\n\n<ul>\n<li>Fix a timing issue where <code>tinymce<\/code> loaded late and the paste listener was not attached.<\/li>\n<li>Retry binding after a short delay and when the visual editor tab is opened, for better Classic Editor compatibility.<\/li>\n<li>Make pasted screenshots more reliable across different sites.<\/li>\n<\/ul>\n\n<h4>1.1.5<\/h4>\n\n<ul>\n<li>Add debug logging for TinyMCE discovery and editor binding, to help compare behavior between sites.<\/li>\n<\/ul>\n\n<h4>1.1.4<\/h4>\n\n<ul>\n<li>Add a Debug mode setting that logs the paste flow and shows status messages.<\/li>\n<\/ul>\n\n<h4>1.1.3<\/h4>\n\n<ul>\n<li>Watch for new <code>blob:<\/code> and <code>data:image<\/code> images in the editor and save them to the Media Library.<\/li>\n<\/ul>\n\n<h4>1.1.2<\/h4>\n\n<ul>\n<li>Intercept pasted screenshots earlier, and accept <code>text\/html<\/code> data URLs used by some QQ and WeChat clients.<\/li>\n<\/ul>\n\n<h4>1.1.0<\/h4>\n\n<ul>\n<li>Add a front-end lightbox setting.<\/li>\n<li>Add a minimum image size, in pixels, required before an image can be opened.<\/li>\n<li>Add an option to limit the lightbox to post content.<\/li>\n<li>Add an optional magnifying-glass badge for images that can be opened.<\/li>\n<li>Close the lightbox by clicking the overlay or pressing Escape.<\/li>\n<li>Set defaults for the new options and remove them on uninstall.<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial release.<\/li>\n<li>Localize external images into the Media Library with one click.<\/li>\n<li>Support the Classic Editor and Gutenberg.<\/li>\n<li>Upload pasted screenshots automatically.<\/li>\n<li>Front-end lightbox with a minimum size setting.<\/li>\n<li>Settings screen.<\/li>\n<\/ul>","raw_excerpt":"Save external images from the editor into the Media Library. Works with the Classic Editor and Gutenberg, and can upload pasted screenshots.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/399893","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=399893"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/laobuluo"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=399893"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=399893"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=399893"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=399893"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=399893"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=399893"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}