• We optimize images before uploading into the media gallery on our WordPress site. It seems that the images are getting resized and at a heavier weight after upload. There is one image currently on my site that was uploaded and shows in the media gallery at 50kb however on the homepage it is 390kb.

    I am curious how this happens? And more importantly, how to prevent it from happening?

    We are working to lighten our pages and improve our speed. Please help.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator bcworkz

    (@bcworkz)

    You can use the ‘wp_editor_set_quality’ filter to set a different quality setting (1-100). The default is 82. The quality so set is easily overridden, so it may have no effect in some situations. Be careful setting this too low. As you know, the optimal setting varies greatly by image. There is no viable way for an automated process to determine the optimal setting for any given image.

    This also only affects new uploads. Existing images remain as they are. To regenerate existing images, you need a plugin like Regenerate Thumbnails.

    The only way I know of to truly optimize images is to manually re-process the images WP creates, uploading the optimal images via FTP into their original WP assigned names, replacing the auto-generated versions. Clearly it’s only worth doing this where there will be significant gains. It’s not worth the effort if it only gains several KB in file size.

    The only way I know of to truly optimize images is to manually re-process

    There are also plugins that optimize images in batch, using a third party image smusher.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Auto Image Resizing in WP / Image Weight Change’ is closed to new replies.