Images Not Resizing When Selecting Image Shape in Layers Widgets
When selecting one of the image ratio options in a Layers widget, you notice the image does not resize properly. Images will also not resize correctly when attempting to create WordPress Galleries, or adhere to image size settings in plugins such as WooCommerce.
This is usually due to missing or misconfigured GD Library on your server, but can also be due to pre-existing content on your WordPress install needing a regenerate.
First ensure your WordPress Settings are optimal for Layers:
- Go to →
- Adjust your Medium setting to 700 wide and 1000 tall
- Adjust the Large setting to 1024 or higher and a height at least 768
- Save your changes
- Return to the Customizer and reset your image ratio setting – the images should change accordingly now as long as there is not a server-side problem.
If you had images in WordPress before activating Layers or have just changed image settings, regenerate your images.
If this is a new setup or new images you upload are not resizing:
If you are managing your own server, install GD.
If you are on a commercial host, contact your host to report the problem and ask them to install, enable or fix any potential issues with GD on your server.
The GD image library is a base requirement for WordPress. While it can run without it, you will then need to ensure images you upload are pre-sized and optimized for the space they will be used in. Refer to the Layers documentation for specifics on image dimensions in the templates and widgets.
Did you know?
Our friends at Jetpack are doing some incredible work to improve the WordPress experience. Check out Jetpack and improve your site's security, speed and reliability.