Thank you guys, feel free to use this script in your themes. Could you please test it at your demo servers for first and then let me know if it works ? It should be 100% bulletproof, because it’s using built-in WordPress functions to resize the images. But I want to have a proof, because I don’t want to be under pressure when you release theme and find a bug after that

SCRIPT UPDATE

- now you can resize all images hosted at your server, not only in wp directory

looks like the script return value contains the absolute server path to the image like /var/www/... , which apparently is causing the image not to display. Anyways the image re size itself works great. I’ll do some additional testing now.

Post Reply

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody