Skip to content

Instantly share code, notes, and snippets.

@deepak-rajpal
Last active September 6, 2015 16:58
Show Gist options
  • Save deepak-rajpal/941a73abfdb7c051c8ab to your computer and use it in GitHub Desktop.
Save deepak-rajpal/941a73abfdb7c051c8ab to your computer and use it in GitHub Desktop.
WordPress Image Resize Tips, Code and Scripts
1) add_image_size() doesn't generate the thumbnail, it just registers an image size as available to WordPress. so if you are using many different size of thumbnails on homepage, using add_image_size will generate a new registered size image with each post's featured image. Therefore, there will be so many images created on server. Sometimes, not all post image need to resize, so unnecessary images.
2) so instead of create a new sized image for every image, we can resize image on the fly. So that only certain category images that required can be resized. earlier we use timthumb for this. But it has encounterd with some vulterabilities so can not be used. Other options are
3) Aqua Resizer
4) vt_resizer (default version does not work with wp multisite, but modified scrips are available)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment