WordPress plugin for creating and managing additional image sizes.
- The plugin provides a user-friendly form to add unlimited custom image sizes, including fields for name, maximum width, maximum height, and description.
- After regenerating images, the newly added image sizes are available in the image size dropdown in post and page editors.
- Users can export and import their additional image sizes for backup or transferring between environments.
- Additional image sizes are listed on the Media Settings page so size settings can be viewed can be viewed in one place.
- Managing settings using a plugin ensures the settings will persist if ever changing WordPress themes.
Follow these steps to install the Additional Image Sizes Manager plugin:
- Download the plugin ZIP file from the GitHub repository.
- Log in to your WordPress administration area.
- Navigate to Plugins > Add New.
- Click the Upload Plugin button at the top of the page.
- Choose the downloaded ZIP file and click Install Now.
- After installation, click the Activate Plugin button.
Once you activate the plugin in your WordPress administration area, you will find an Additional Image Sizes Manager section under Settings > Media. Additionally, a new admin page titled "Additional Image Sizes Manager" (AISM) will be available under Settings.
On the AISM page, you can easily add, edit, delete, import, and export custom image sizes.
After adding or modifying image sizes, it is necessary to regenerate the images using a plugin such as Regenerate Thumbnails or the WordPress Command Line Interface by running the command wp media regenerate
.
After regenerating the images, you should see the custom image sizes listed in the image size dropdown when editing posts and pages using either the Gutenberg block editor or the Classic editor.
To facilitate migration between environments, users can export their custom additional image sizes as a JSON file and import it on another system. Please note that importing and exporting do not check for duplicate entries or resize previously uploaded Media Library images.
If you choose to deactivate and delete the plugin, the custom additional image sizes option (additional_image_sizes_manager
) will be removed from the database. This occurs when you click the "Deactivate" link on the Plugin page, followed by the "Delete" link.
- None currently.
- Make the columns in the additional image sizes lists sortable for better organization.
- Implement dismissible notifications to provide users with feedback on various actions, such as successful additions, updates, or deletions.
- Enhance error handling and provide informative feedback in case of any activation or configuration issues.
- Consider separating PHP logic and HTML into individual files to improve maintainability.
- Consider implementing support for cropped images.
- Include support for additional languages.
- Test the plugin for compatibility with other popular plugins to avoid conflicts.
- Develop unit tests to ensure the stability and reliability of the plugin.
- Submit the plugin to the official WordPress Plugin Directory.