{"id":11769,"date":"2011-01-17T14:47:50","date_gmt":"2011-01-17T14:47:50","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/auto-tinysrc\/"},"modified":"2011-06-20T16:05:05","modified_gmt":"2011-06-20T16:05:05","slug":"auto-tinysrc","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/auto-tinysrc\/","author":1345694,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.1","stable_tag":"1.1","tested":"3.4.2","requires":"2.7","requires_php":"","requires_plugins":"","header_name":"Sencha.io Src for WordPress","header_author":"Mark Kirby\/ribot","header_description":"","assets_banners_color":"","last_updated":"2011-06-20 16:05:05","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/mark-kirby.co.uk\/2011\/auto-tinysrc-wordpress-plugin","header_author_uri":"http:\/\/ribot.co.uk","rating":0,"author_block_rating":0,"active_installs":0,"downloads":1614,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":{"1.0":"<p>First release<\/p>","1.1":"<p>Moves to use the latest version of tinysrc, rebranded as Sencha.io Src<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0","1.1"],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[163,841,9695,9697,9696],"plugin_category":[50],"plugin_contributors":[129648],"plugin_business_model":[],"class_list":["post-11769","plugin","type-plugin","status-closed","hentry","plugin_tags-images","plugin_tags-mobile","plugin_tags-responsive-web-design","plugin_tags-sencha-io-src","plugin_tags-tinysrc","plugin_category-media","plugin_contributors-ribot","plugin_committers-ribot"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/auto-tinysrc.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p><a href=\"http:\/\/src.sencha.io\/\">Sencha.io src<\/a> is a service provided by Sencha which dynamically shrinks your images according to the device accessing them. This helps shrink images for mobile, and will cut down the size of a site with a <a href=\"http:\/\/www.alistapart.com\/articles\/responsive-web-design\/\">responsive design<\/a>.<\/p>\n\n<p>This plugin replaces all image tag src's within your content with the tinysrc src (http:\/\/mysite.com\/myimage.png becomes http:\/\/src.sencha.io\/http:\/\/mysite.com\/myimage.png), and provides a function to call in your themes to optimise those images.<\/p>\n\n<h3>Donations<\/h3>\n\n<p>None<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload <code>auto-tinysrc.php<\/code> to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Place <code>&lt;?php \nif (function_exists('get_tinysrc_image')) { \nget_tinysrc_image('image_url'); \n} else { \necho image_url;\n} ?&gt;<\/code> in your templates to display any template images optimised, e.g. \n   <\/li>\n<li>To get a variable containing the url of an image with the tinysrc url use <code>&lt;?php \nif (function_exists('get_tinysrc_image')) { \nget_tinysrc_image(get_bloginfo('template_url').'\/images\/bonsai_404_error.png', false); \n} ?&gt;<\/code><\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>What happens if sencha.io src goes down<\/dt>\n<dd><p>If the service goes down (which as its backed by Sencha, it shouldn't for long), simply deactivate the plugin to serve all the images from your server again. If you use the template code, be sure to use the <code>&lt;?php if (function_exists('get_tinysrc_image'))<\/code> code so that you serve the original image again when deactivating the plugin.<\/p><\/dd>\n<dt>What happens if I want to replace Sencha.io Src for WordPress with another similar service, or Sencha.io src change their url again<\/dt>\n<dd><p>Go to the settings (Settings -&gt; Sencha) and change the url for your desired replacement.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0<\/h4>\n\n<ul>\n<li>First release<\/li>\n<\/ul>\n\n<h4>1.1<\/h4>\n\n<ul>\n<li>Updated name to reflect tinysrc's change in branding to Sencha.io Src<\/li>\n<li>Updated URL to latest http:\/\/src.sencha.io\/<\/li>\n<\/ul>","raw_excerpt":"Passes all images through the tinysrc service, optimising all your images for mobile.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/11769","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=11769"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/ribot"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=11769"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=11769"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=11769"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=11769"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=11769"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=11769"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}