Home

Awesome

Clean Image Filenames

This plugin automatically converts language accent characters in filenames when uploading to the media library. Characters are converted into browser and server friendly, non-accent characters.

Features

Examples

Worth noting

The plugin only converts filenames when the files are being uploaded. It can not convert existing files.

Filter for developers

This filter provides developers a way to specify which file types the plugin should convert. This filter overrides the plugin settings on the media settings page. For a complete list of mime types, see Wikipedia.

The following example will convert 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' );

FAQ

Can this plugin convert filenames of existing files in the media library?

No, this plugin only cleans the filenames of files when they are being uploaded to the media library.

Installation

  1. Search for Clean Image Filenames in the plugins directory.
  2. Install and activate the plugin.

or

  1. Download and unzip the plugin and upload the clean-image-filenames directory to your /plugins/ directory.
  2. Activate the plugin through the 'Plugins' menu in WordPress.

Changelog

1.5

1.4

1.3

1.2.1

1.2

1.1.1

1.1

1.0

Upgrade Notice

1.1.1

This version adds plugin uninstall script that deletes plugin settings if you were to delete the plugin.

1.1

This version adds plugin settings to the media settings page which lets you select between cleaning the filenames of all files or images only. The filter from version 1.0 is still available.