316 posts
  • Affiliate Level 2
  • Author Level 5
  • Collector Level 2
  • 4 Years of Membership
+2 more
SyamilMJ
says

Hey guys,

Just a heads up on this new script I developed to resize/crop/scale images uploaded through WordPress.

It uses WordPress built-in functions so it’s completely native.

Some of the features:

  • Completely native – uses WP’s built-in functions
  • Works both on single or multisite install
  • Easy to use, just feed in the URL
  • Lightweight – can be minified down to +/- 50 lines of code
  • Only process image once, then return the URL if the image already resized
  • Options to crop, soft-crop, array return etc.

I have supplied a little write-up about it on WPExplorer.

The script now lives on Github and licensed with WTFPL .

Cheers :)

416 posts
  • United States
  • Power Elite Author
  • Trendsetter
  • Top Monthly Author
+8 more
WPExplorer
says

It works beautifully! ;)

812 posts
  • 5 Years of Membership
  • Collector Level 2
  • Community Superstar
  • Exclusive Author
iamthwee
says

Genius! Well … not quite… but useful.

165 posts
  • Trendsetter
  • Elite Author
  • Author Level 8
  • Most Wanted Winner
+4 more
AnarielDesign
says

Great,thanks a lot :)

2468 posts
  • 6 Years of Membership
  • Author Level 2
  • Affiliate Level 4
  • Beta Tester
+3 more
digitalimpact
says

Great job man! \m/

438 posts
  • 3 Years of Membership
  • Author Level 4
  • Collector Level 3
  • Exclusive Author
Pixelous
says

Thanks!!!

316 posts
  • Affiliate Level 2
  • Author Level 5
  • Collector Level 2
  • 4 Years of Membership
+2 more
SyamilMJ
says

Thanks guys.

I really hope WP authors will find it useful and adopt it into their themes.

With the script resizing it’s so simple and straightforward, e.g.:

<img src="<?php echo aq_resize($image_url, $width, $height) ?>"/>

It gets saved to the uploads directory and will just retrieve the url if the cropped image is already there = fast + easy + secure and overall just plain efficient. :)

More examples here – https://github.com/sy4mil/Aqua-Resizer/wiki/Examples

198 posts Dreams Money Can Buy
  • Top Monthly Author
  • Trendsetter
  • Weekly Top Seller
  • Author Level 12
+8 more
SwiftIdeas
says

Looks bloody good!

Will definitely have to try this out in the next project, thanks for sharing! :)

- Ed

1368 posts
  • Weekly Top Seller
  • 5 Years of Membership
  • Author Level 6
  • Beta Tester
+5 more
Smartik
says

Thank you very much for SMOF and for this. :)

29 posts
  • Collector Level 2
  • Exclusive Author
  • 5 Years of Membership
aprjnet
says

Thanks a lot! Wow, incrideble! :P Muchas gracias!

by
by
by
by
by
by