Tag Info

New answers tagged

0

You can try this plugin: https://wordpress.org/plugins/optimize-images-resizing It resizes images based on your registered image size, but only when needed. Also can cleanup existing image sizes so they can regenerate.


0

If you're always blowing up a small image to a larger size, and don't care about the resulting loss in quality (although personally I would, for photos at least) then you might as well simply override the height and width in CSS (or inline HTML) - there's no gain in making the image file on your server any bigger. And yes, don't ever use TimThumb.


0

You can simply use preg_replace() functions to remove -800x667 (or any height) from the image. Like this- $image = generate_filename( NULL, NULL, 'jpg'); echo preg_replace( '/-800x[0-9]{2,4}/', '', $image );



Top 50 recent answers are included