soo_thumb_atts
Summary:
Update thumbnail height and width values after the Txp 4.2.0 upgrade
(If it won’t install try the compressed version)
(Code preview below)
Full plugin help text
Overview
Thumbnail height and width attributes were introduced in Textpattern version 4.2.0. However, these attributes are not automatically added to thumbnails already in the database when the upgrade takes place.
This plugin finds images with a thumbnail but no thumbnail height or width in the database, and allows you to update these with the correct values.
It is intended as a one-use plugin, but there might be future use for it as a means of correcting data for images that have been batch-replaced without going through the Textpattern admin panel. (It could easily be modified to examine all images, not just thumbnails.)
The plugin requires Textpattern version 4.2.0 or later.
Usage
Install and activate the plugin, then find its control panel under the Extensions tab. Click “Update” and you’re done; you will probably want to uninstall the plugin.
Version History
0.2.1 (9/3/2009)
Code cleaning — thanks again to Ruud for the suggestions.
0.2 (9/3/2009)
Thanks to Ruud for the suggestions. This version only operates on thumbnails with h and w set to 0 in the database, and does not attempt to list more than 50 images (although it will still attempt to update all the images at once).
0.1 (9/3/2009)
Initial release:
- Update thumbnail height and width values in the database
Code preview
0 :
Posted 2009-09-03 (last modified 2017-03-14)

