Warning. This plugin can only copy metadata, not read, or return it. It will be replaced in V4 with a more capable plugin.
Copies all metadata from the source image to the destination image.
Metadata specific to original encoding of image (like width, height, etc), is of course discarded and replaced. See the source for a comprehensive list of discarded metadata.
Installation
Install ImageResizer.Plugins.CopyMetadata
, or…
- Reference ImageResizer.Plugins.CopyMetadata.dll
- Add
<add name="CopyMetadata" />
to the<plugins />
section.
Syntax
copymetadata=true
Resources
http://stackoverflow.com/a/25162782/166893 https://msdn.microsoft.com/en-us/library/system.drawing.imaging.propertyitem.id.aspx
This plugin (CopyMetadata plugin) is part of the Creative Edition
Where is the plugins section?
The <plugins>
section is located in Web.config, and is nested inside the <resizer>
element, which is nested inside <configuration>
. For examples, see this sample Web.config file.
Where can I find the dll?
We prefer that you install via NuGet, but you can also find the plugin DLL files in the /dlls/release folder of your download.
How do I typically install a plugin via Web.Config?
- In Visual Studio, right click on your project and choose "Add reference". Browse to the plugin DLL and click "OK".
- In the <plugins> section of Web.config, insert <add name="PluginName" />
- Look at the plugin documentation to see what configuration options (if any) are available.