{"id":47695,"date":"2007-10-19T20:55:44","date_gmt":"2007-10-19T20:55:44","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/wordpress-image-resizer\/"},"modified":"2007-10-19T20:55:44","modified_gmt":"2007-10-19T20:55:44","slug":"wordpress-image-resizer","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/wordpress-image-resizer\/","author":259525,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"0.1","stable_tag":"trunk","tested":"2.1","requires":"","requires_php":"","requires_plugins":"","header_name":"WordPress Image Resizer","header_author":"Jeffrey Warren","header_description":"","assets_banners_color":"","last_updated":"2007-10-19 20:55:44","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/vestaldesign.com\/","header_plugin_uri":"http:\/\/www.vestaldesign.com\/blog\/2007\/10\/wordpress-image-resizer-plugin.html","header_author_uri":"http:\/\/www.vestaldesign.com","rating":0,"author_block_rating":0,"active_installs":10,"downloads":4380,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","other_notes"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":[],"screenshots":{"1":"No screenshots."}},"plugin_section":[],"plugin_tags":[8626,163,20961],"plugin_category":[50],"plugin_contributors":[93891],"plugin_business_model":[],"class_list":["post-47695","plugin","type-plugin","status-closed","hentry","plugin_tags-imagemagick","plugin_tags-images","plugin_tags-resizing","plugin_category-media","plugin_contributors-jeferonix","plugin_committers-jeferonix"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/wordpress-image-resizer.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Finds img tags in the post content, parses them out, and aggregates web-sized versions of the images in an \"images\" div which is echoed <em>before<\/em> the post content.  It also generates a \"presskit\" div <em>after<\/em> the post content which has links to full-quality versions, under a forced-download.<\/p>\n\n<!--section=installation-->\n<p>REQUIRES: PHP 4+\nOPTIONAL BUT HIGHLY RECOMMENDED: ImageMagick<\/p>\n\n<p>TO INSTALL: drop the wp-image-resizer folder into wp-plugins.  Then:<\/p>\n\n<p>1) If you want to use ImageMagick (HIGHLY recommended, it won't resize images over 800k or so otherwise) open \/thumb\/phpThumb.config.php and on line 132:<\/p>\n\n<p>$PHPTHUMB_CONFIG['imagemagick_path'] = '\/your\/imagemagick\/directory\/ImageMagick-6.3.6\/bin\/convert';<\/p>\n\n<p>2) change the first line of embed_image_tag() in this file to your desired width:<\/p>\n\n<p>$imgSize = 400; # desired width<\/p>\n\n<p>3) read \/thumb\/docs\/phpthumb.readme.txt for other manipulation options.  This currently does an \"unsharp mask\" (fltr=usm) to make the smaller versions nice and sharp.<\/p>\n\n<p>4) Go to \/wp-admin\/plugins.php and enable \"WordPress Image Resizer\"<\/p>\n\n<!--section=faq-->\n<dl>\n<dt>Why is this not working? or Why aren't the resized versions being generated?<\/dt>\n<dd><p>For more efficient loading we use relative paths to access the image.  If you have the images stored somewhere crazy, or if you do hard .htaccess redirects, you may want to comment out the following lines in embed_image_tag() :<\/p>\n\n<pre><code>\/\/\/\/\/\/ RELATIVE IMAGE PATHS \/\/\/\/\/\/\/\/\n    $exploded = explode(\"\/\",$home);\n    $base_url = $exploded[0].\"\/\/\".$exploded[2]; # cut off anything up to \".com\" or \".net\" etc... so if your blog is at http:\/\/poop.com\/blog\/, $base_url will yield only \"http:\/\/poop.com\"\n    $link = str_replace($base_url, \"\/\", $link);\n    $link = str_replace(\"\/\/\", \"\/\", $link); # Sometimes get_bloginfo('home') has a trailing slash (this may be unnecessary)\n\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\n<\/code><\/pre><\/dd>\n\n<\/dl>\n\n<!--section=other_notes-->\n<h3>Usage Instructions<\/h3>\n\n<p>1) Just upload your original, huge, gonzo-gigantic images normally in the WordPress Upload form when writing a post or page.  This script will find 'em and do its stuff.<\/p>\n\n<p>2) To \"exempt\" images from this script, write 'class=\"custom\"' EXACTLY LIKE THIS:<\/p>\n\n<p>&lt;img class=\"custom\" ...<\/p>\n\n<p>It looks for the string '&lt;img class=\"custom\"' and skips those.  I would have made it smarter (regex) but might as well save on horsepower by not using regex.<\/p>\n\n<p>3) Write to us at webdesign@vestaldesign.com with suggestions and improvements!<\/p>","raw_excerpt":"Parses img tags out of the_content and aggregates resized versions of the images in an &quot;images&quot; div.  Also links to full-quality versions.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/47695","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=47695"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/jeferonix"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=47695"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=47695"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=47695"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=47695"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=47695"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=47695"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}