<html><body bgcolor="#FFFFFF"><div><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.292969); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); font-size: medium;">I completely agree with your point - "<span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.296875); ">Suggesting to everyone that they have to run a plugin every time they decide to change their image sizes seems to be fraught with the risk of being lynched."</span></span></div><div><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.292969); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); font-size: medium;"><br></span></div><div><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.292969); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); font-size: medium;"><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.296875); "></span>I had similar situation and my theme was approved. </span></div><div><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.292969); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); font-size: medium;">As you have nicely explained the use case, you should't face any issues IMHO</span></div><div><br><div>-Rahul</div><div><br></div>Sent from my iPhone</div><div><br>On 12-Feb-2011, at 7:03 AM, Sayontan Sinha <<a href="mailto:sayontan@gmail.com">sayontan@gmail.com</a>> wrote:<br><br></div><div></div><blockquote type="cite"><div>Hi,<br>At the risk of flogging a dead horse I would like to venture a few questions about image resizing. I know that this topic has done the rounds several times, but I just wanted some clarity before uploading the next version of my theme.<br>
<br>I was using TimThumb for resizing, which I eliminated in my upcoming release. To do so, however, I had to use a few tricks:<br><ol><li>I am using the concept of registered image sizes. So if you set a custom size for an image, it is being added using the add_image_size function.</li>
<li>Now, considering the case where a size change is being registered after the image has been uploaded, I am broadly using the method outlined <a href="http://core.trac.wordpress.org/ticket/15311"><a href="http://core.trac.wordpress.org/ticket/15311">http://core.trac.wordpress.org/ticket/15311</a></a>.<br>
</li><li>Note that for historical reasons I have functionality similar to the "Get the Image" plugin in my code, whereby you could retrieve images based on the featured image, or a custom field or an attachment or an embedded URL. So it is imperative to have some kind of resizing functionality that works above and beyond the native WP resizing capabilities (which I am anyway using). This is where the above script comes really handy, but needs a good few modifications. To cite a few examples:</li>
<ol><li>I have made the method work for external URLs, plus the size parameters are actually based on the registered sizes and not "GET" parameters.</li><li>The resizing is only invoked if an image of "intermediate" size (the fourth parameter of wp_get_attachment_image_src()) is not returned by the post thumbnail functionality. Also note that due to this means I cannot use the_post_thumbnail by itself, but I have to use wp_get_attachment_image_src(), which is called by wp_get_attachment_image(), which is called by get_the_post_thumbnail(), which in turn is called by the_post_thumbnail.<br>
</li></ol></ol>The result of the above is a seamless transition (hopefully) from my previous approach that used TimThumb to the current approach. The reason I have gone this route is so that users don't freak out when they see their images have not been correctly resized. Suggesting to everyone that they have to run a plugin every time they decide to change their image sizes seems to be fraught with the risk of being lynched. <br>
<br>Is this going to be acceptable for a review? I know that it is probably difficult to say without actually seeing the code, but I thought I should try my luck.<br><br>Regards,<br>Sayontan.<br><br>-- <br>Sayontan Sinha<br>
<a href="http://mynethome.net" target="_blank"><a href="http://mynethome.net">http://mynethome.net</a></a> | <a href="http://mynethome.net/blog" target="_blank"><a href="http://mynethome.net/blog">http://mynethome.net/blog</a></a><br>--<br>Beating Australia in Cricket is like killing a celebrity. The death gets more coverage than the crime.<br>
<br>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>theme-reviewers mailing list</span><br><span><a href="mailto:theme-reviewers@lists.wordpress.org">theme-reviewers@lists.wordpress.org</a></span><br><span><a href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a></span><br></div></blockquote></body></html>