Images Regenerate Thumbnails

Posted in: Newspaper
Post count: 4

Is it right that when i add ” add_filter( ‘jpeg_quality’, create_function( ”, ‘return 40;’ ) );” to the function.php and use the Regenerate Thumbnails Plugin, that it reduce the Image Size? Or is it only for new pictures i upload?

Post count: 6600

Hi,

That function compresses images by 40% and the plugin regenerates all images. If you just add the function then only the image you upload will be compressed and if you also need the changes to be applied to the old ones too you need to use the plugin and regenerate thumbnails.

Thanks

Post count: 4

does not work.. the code does not work. Whats wrong?

Post count: 6600

Hi,

The apostrophes from your code aren’t properly formatted.
Use it like this: add_filter( 'jpeg_quality', create_function( '', 'return 40;' ) );

Thanks

Post count: 171

How can I set different quality compressions for different thumbnails?

Thanx in advance. 🙂

Post count: 6600

Hi,

Seems that this is not possible using the jpeg_quality hook but you can try to do it like this: http://wordpress.stackexchange.com/questions/74103/set-jpeg-compression-for-specific-custom-image-sizes

Thanks

Viewing 6 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic.