Aqua Resizer

Not gonna write a long post here, since I already did a rather concise yet lengthy write-up about the script on WPExplorer.

What the script does basically is to resize and/or crop images from WordPress on-demand. It is easy to use, fast, secure and efficient.

One of it’s most important ingredients is the implementation of WordPress built-in functions, meaning it’s completely native. You know what that means – No more 777 folders, manual querying database for attachment id etc. Just feed in the url and you’re golden.

The script is now singing and dancing on Github so go grab it while it’s hot. If you have issues with it please, please, please post it on its Github issue page, and if the script saved your life please give me your sister’s contact no.


P/S: Thanks to AJ for testing the script and for that awesome looking feature image. I hope you live up to 90 and have many kids.

31 Responses

Add your comment
  • Jakub Kohout Reply

    So with this I don’t have to do custom image_sizes like this?
    add_image_size( ‘blog_tree_column’, 358, 170, true); // Blog tree columns size

    • Syamil Reply

      You are absolutely correct. :)

      • Jakub Kohout Reply

        That’s really cool :) Really good job again :)

  • Omar Reply

    Syamil, this script is looking promising planning on using it on my next theme, just one quick question. How does the cache work? from what I’ve seen it puts the images in the native upload folders of WordPress but how often does it delete the images not being used?

    • Syamil Reply

      Hi Omar,

      The script doesn’t do that unfortunately. The caching method is just basically handling the url of the already resized images instead of regenerating a new one on each page load, then it follows the default behaviour of how WordPress handle images.

      • Omar Reply

        Awww! still pretty good option I usually use timthumbs but its getting a bit messy lately. At least its still a better option then using then using add_image_size and having XXXX images you will never use!

  • AJ Clarke Reply

    lol. thanks for “ps” dude!

  • Frank M Reply

    This looks very promising. I’ve never been a fun of timthumb and add_image_size is a little messy. I’ll definitely give it a spin.

    Thanks for sharing.

    • Syamil Reply

      Give it a go. You’re gonna like it. :)

  • ramzes Reply

    Thanks for nice script. We are going to use it in our future projects.

  • Jinson Abraham Reply

    I have ditched timthumb and moved on to aqua resizer. Thanks for the wonderful script.

  • William Reply

    3 more queries per image, this script had tripled my queries >.<

    • syamilmj Reply

      If you can offer a better alternative to getimagesize() and your method of benchmarking the performance, I’d love to hear it. The script is fast enough, but it’s not perfect. I’ve tested it with over 1000 recursive resizes *100 depth level and the server didn’t even blink.

  • Vasili Reply

    Hey mate, i want to use ‘Multiple Post Thumbnails’ (i have integrated this plugin into the theme), it uses native WP function: the_post_thumbnail. Is it possible somehow to combine with ‘Aqua Resizer’?

  • riesurya Reply

    Hi Syamil,
    thanks for this great script. I beleive this feature should become WordPress core function :)

    greeting from Jakarta

  • Alir3za Reply

    Hello , Nice work .
    In past i was working with Timthumb . Now , i’m going to using This cool Resizer .
    Thanks sir .

  • Ionut Reply

    Hy! i want to resize all images from my site to this size w:200px max-height:180px. I have setup the script, but i can’t figure out how to proceed forward. Can you help me, please? In wordpress dashboard i swich all images size to 0, to obtain one image, not three.

  • Ionut Reply

    I do not understand the wiki, that’s why I asked here. I will try to search on google for some answers, thanks.

  • mailmilisku Reply

    This is a great plugin. Is it possible to combine feature image or first image in post as the thumbnail?
    In case user don’t set up feature image, automatically will use the first post image as thumbnail.
    Really appreciate for the simple code here. Thanks in advance.
    One of your theme on Themeforest, there is use the combination vode I pointed above?

  • Willem Reply


    Using the normal media settings in WP still saves the orignal ‘big’ file in my image folder. It is only ‘resized’ to use images in blogs and saves this sizes also into my image folder.

    What I want is when I upload a ‘big’ file, it resizes to a maximum width without saving the ‘big’ image file in my image folder.

    Is that what I can use this for?

    Kind regards


    • syamilmj Reply

      It doesn’t do that

  • Victor Teixeira Reply

    Great, I made something like this ( some years ago and was using it on every project. But now i had to update for the new image editor api… No more… thnaks

    • syamilmj Reply

      Hi Victor! Actually I was quite a fan of your vt_resize script, it’s really great to have you commenting here :)

  • Waqas Reply

    I tested the plugin at localhost. But I didn’t get the point. It replaces the wordpress default add image size function, which works on the backend when making posts. But your scripts creates copy of image on page load. So which one is faster in terms of response time for visitor?

    Aren’t you replacing the function from backend to front end? Its ok to pass a functiona at backup where load time doesn’t matter. But on font-end your script it questionable :D

    • syamilmj Reply

      Hi Waqas,

      You’re right, the script runs on user request, but it only resizes the image once and then serve the URL thereafter – so the response time difference is negligible once the image has been resized.

  • PrintingBig Reply

    The theme we have uses this – and it seems to be overriding our defined image sizes and upsizing them to 100% width of the post or page. What is the fix?

  • Nazakat Reply

    How i can use AQUA RESIZER in links like when using timthumb, for example,

    ID), ‘large’ );
    $url = $src[0];
    <a href="/timthumb.php?src=&h=180&w=120″> Link

    How can i achieve this using AQUA RESIZER