A modified and extended plugin version
-
This modification adds several suggestions from previous posters and additionally extends the plugin functionality.
Default behaviour of WP:
When a new (custom) image size is added (e.g. with function add_image_size()) or an existing image size is changed this affects only images uploded after that change.New feature:
The meta data for intermediate image sizes for already uploaded images is created on the fly. No plugins like “AJAX Thumbnail Rebuild” are necessary any more to display old images with new sizes.List of changes:
- Included: www.ads-software.com/support/topic/plugin-dynamic-image-resizer-problems-with-four-letter-file-extensions
- Included: www.ads-software.com/support/topic/plugin-dynamic-image-resizer-images-with-special-characters-are-not-resized
- Included: www.ads-software.com/support/topic/bug-report-workaround [function image_resize() is deprecated since WP 3.5]
- Included: www.ads-software.com/support/topic/bug-report-workaround [change returning status code to 200]
- Added: Now all image formats are supported which can be handled by new class WP_Image_Editor
- Added: Function dynimg_add_missing_size() which adds/changes image sizes in the meta data of already uploaded images on the fly.
Currently the modified version contains three define statements which can be used to enable the new features. See the script source at the beginning. In a future version this may be changed to become regular plugin options.
You need to set two of the defines in the script source to true, to enable the new feature:
define('DYNIMG_CREATE_IMAGE_FOR_ADDED_SIZE_ALWAYS', true); define('DYNIMG_CREATE_IMAGE_FOR_CHANGED_SIZE_ALWAYS', true);
Download from https://gist.github.com/jotazzu/6940499
- The topic ‘A modified and extended plugin version’ is closed to new replies.