>
Download This Plugin | |
Download Elegant Themes | |
Name | Clean Image Filenames |
Version | 1.1.1 |
Author | Upperdog |
Rating | 94 |
Last updated | 2015-01-06 12:10:00 |
Downloads |
1220
|
Download Plugins Speed Test plugin for Wordpress |
Home page PageSpeed score has been degraded by 0%, while Post page PageSpeed score has been degraded by 0%
Clean Image Filenames plugin added 4 bytes of resources to the Home page and 14 bytes of resources to the sample Post page.
Clean Image Filenames plugin added 0 new host(s) to the Home page and 0 new host(s) to the sample Post page.
Great! Clean Image Filenames plugin ads no tables to your Wordpress blog database.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.
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');