Wordpress plugins
Clean Image Filenames

Clean Image Filenames

Version : 1.1.1
Tested up to : 4.8.2
Number of download : 17569
Author : Upperdog
Average rating : 5 / 5 on 11 votes 11 votes, 5 avg.rating

Screenshots

Clean Image Filenames
Clean Image Filenames
Clean Image Filenames
Clean Image Filenames

Filenames with special characters or language accent characters, like Château de Ferrières.jpg and smörgåsbord.png, can sometimes be a problem for browsers or servers. This plugin takes care of that and cleans the filenames of files uploaded to the WordPress media library. This plugin cleans the filenames from special characters like exclamation marks, periods, and commas and accent characters like Swedish and German umlauts. Special characters are remove, accent characters are converted to their non-accent equivalent, and blank spaces are converted into dashes. Easily set the plugin to clean the filenames of images only or all files uploaded to the media library. Developers can take advantage of the built in filter to get really specific about what file types to clean the filenames of. Features Can be used for all file types, only image file types, or only specific file types Is multisite compatible Works with custom upload_dir setups Doesn’t alter your database or uploads settings Plugin filter for developers Developers can get really specific about what file types to clean by using the clean_image_filenames_mime_types filter in their plugins or themes. When using this filter, settings saved through the settings page are overridden. For a complete list of mime types, see Wikipedia. The following example would make the plugin clean the filenames for PDF, JPEG and PNG files only. function my_clean_image_filenames_mime_types() { $mime_types = array( 'application/pdf', 'image/jpeg', 'image/png', ); return $mime_types; } add_filter('clean_image_filenames_mime_types', 'my_clean_image_filenames_mime_types');

Download now