Divi WordPress Theme
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix Reply To: Please help me understand image sizes

Discussion in 'Misc WordPress Requests' started by Jacob Peattie, Nov 13, 2017.

  1. Jacob Peattie


    Reply To: Please help me understand image sizes, by Jacob Peattie

    The alternate sizes are saved in wp-content/uploads alongside the original image. They will be suffixed with dimensions like -150x150.jpg, for example.

    By default there will be thumbnail, medium, and large versions of the image. The dimensions for these are set in Settings > Media. Your theme might also register its own size for post thumbnails. Plugins and themes can also register additional sizes if they want.

    The sizes and which file they correspond to are stored in the _wp_attachment_metadata meta for the attachment post (each upload is represented in the database as an attachment-type post).

    Templates, whether they are in a plugin or theme, when given a particular image can choose to output a particular version. This would be to avoid the issue you’re having. So a theme might choose to use the medium version of the image so that the whole image isn’t loaded.

    Plugins, like Content Views, when outputting a selected image could just output the full size image, or it could output a cropped version. Either one of the default WordPress sizes, or one it registered itself. But that depends entirely on the plugin. If a plugin or isn’t outputting appropriate image sizes you’ll need to contact the developer to find out if there’s a reason or option to change the size.

    Another possibility is that you’re attempting to use a size that was registered after the image was initially uploaded. If Content Views is trying to use a size that it defined itself, but is trying to output an image that was uploaded before the plugin was activated, then it won’t be able to find the cropped version and will output the full size. This is because cropped versions are only made for sizes registered when the image was uploaded. To work around this either re-upload the image, or use a plugin like Regenerate Thumbnails to do a fresh pass on all you images.

    Reply To: Please help me understand image sizes

Share This Page

Monarch Social Sharing Plugin