{"id":10977,"date":"2010-10-25T09:34:09","date_gmt":"2010-10-25T09:34:09","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/automatic-thumbnail-generator\/"},"modified":"2010-10-25T09:49:44","modified_gmt":"2010-10-25T09:49:44","slug":"automatic-thumbnail-generator","status":"publish","type":"plugin","link":"https:\/\/so.wordpress.org\/plugins\/automatic-thumbnail-generator\/","author":7269654,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"0.1","stable_tag":"0.1","tested":"3.0.5","requires":"3.0.1","requires_php":"","requires_plugins":"","header_name":"Automatic Thumbnail Generator","header_author":"iuk","header_description":"","assets_banners_color":"","last_updated":"2010-10-25 09:49:44","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/www.iukonline.com\/auto-thumbnail-generator\/","header_author_uri":"http:\/\/www.iukonline.com\/","rating":0,"author_block_rating":0,"active_installs":10,"downloads":6621,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.1"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[133,166,1326],"plugin_category":[50],"plugin_contributors":[92791],"plugin_business_model":[],"class_list":["post-10977","plugin","type-plugin","status-publish","hentry","plugin_tags-image","plugin_tags-posts","plugin_tags-thumbnail","plugin_category-media","plugin_contributors-iuk","plugin_committers-iuk"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/automatic-thumbnail-generator.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>This plugin will scan your thumbnail-less posts and look for a suitable image to use as a thumbnail.\nIt will look for images linked in the post content and will download and add them to the local library.\nPost scanning is performed only when <code>the_post_thumbnail<\/code> or <code>get_the_post_thumbnail<\/code> are called for \nthat particular post.<\/p>\n\n<p>So you designed your new thumbnail-based template, but you have tons of thumbnail-less posts and\ndon't want to spend too much time on scraping your old posts for a thumbnail picture. Maybe you\nthink you will probably forget to set a thumbnail for your new posts. Maybe both, as was my case :).<\/p>\n\n<p>When a thumbnail for a post is queried and nothing is found this plugin will scrape the post for \nan <code>&lt;img&gt;<\/code> tag and its <code>href<\/code> property. Once a suitabile image is found (based on the configured \nsettings), it will be downloaded ad set as the post thumbnail. If no suitable image is found, \na default one will be used.<\/p>\n\n<p>This plugin is still in early development state. It just covers my needs (see the \"To do\" section\nfor more details). It has been tested only with wordpress 3.0.1, but should work also with 2.9,\nsince I used similar code with 2.9 (even if it was included in my template's <code>functions.php<\/code>).<\/p>\n\n<p>The plugin is not supported. This doesn't mean that I will not look into submitted bugs. Anyway,\ndon't expect prompt answers, since this is done in my spare time.<\/p>\n\n<h3>To do<\/h3>\n\n<p>Many things should be done in future releases. Here are some:<\/p>\n\n<ul>\n<li>Current version always downloads selected linked images. This works good with images hosted on external sites.\nIf your posts link to images hosted in your media library, you will end up with two images.<\/li>\n<li>A more user friendly name should be used for images added to the library (e.g. Thumbnail for post ...)<\/li>\n<li>Somewhere, a button to reset the \"previously scanned\" status of all posts should be provided (on current version,\nyou cas set or reset it for single posts in the edit page.<\/li>\n<li>\"previously scanned\" status should probably be reset (or at least you should be asked to) when publishing a \nupdating an existing post<\/li>\n<\/ul>\n\n<p>More ideas are wellcome.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload <code>auto-thumbnail-generator<\/code> to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Just use the default <code>the_post_thumbnail<\/code> or <code>get_the_post_thumbnail<\/code> template tags<\/li>\n<\/ol>\n\n<p>After installation, you can find plugin settings in the media settings page. The following settings\nare available:<\/p>\n\n<ul>\n<li>Ignore previously scanned: when checked, previously scanned posts will be re-scanned on each \nrequest if no thumbnail is linked to the post<\/li>\n<li>Uknown image: name of the image which shall be used if no thumbnail can be found for a post \n(must match the media library name of an image)<\/li>\n<li>Minimum Width and Minimum Height: minium width and height for the selected thumbnails (no contraints\nif set to null or 0)<\/li>\n<li>Aspect ratio: aspect ratio (width\/height) for the selected thumbnails (e.g. 1.5 for 3:2 ratio,\nno contraints if set to null or 0)<\/li>\n<li>Aspect ratio tolerance: tolerance to aspect ratio for selected thumbnails (percentage of aspect ratio,\ne.g. 0.1 tolerance with aspect ratio set to 1.5 will select images with aspect ratio raging from\n1.35 to 1.65)<\/li>\n<\/ul>\n\n<!--section=changelog-->\n<h4>0.1<\/h4>\n\n<ul>\n<li>Very first version. Just covers my immediate needs.<\/li>\n<\/ul>","raw_excerpt":"Automated on-demand generation of posts thumbnails.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/so.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/10977","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/so.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/so.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/so.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=10977"}],"author":[{"embeddable":true,"href":"https:\/\/so.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/iuk"}],"wp:attachment":[{"href":"https:\/\/so.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=10977"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/so.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=10977"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/so.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=10977"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/so.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=10977"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/so.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=10977"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/so.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=10977"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}