Adds support for .PSD source files. No configuration required.
Transparent PSD files will be displayed with a white background. For transparency support for PSDs, see FreeImageDecoder.
Installation
Either run Install-Package ImageResizer.Plugins.PsdReader
in the NuGet package manager, or:
- Add ImageResizer.Plugins.PsdReader.dll to your project
- Add
<add name="PsdReader" />
inside<resizer><plugins></plugins></resizer>
in Web.config.
Usage
Simply reference a .psd file as you would a .jpg
image.psd?width=100
A 100px wide jpeg will be returned.
You can also simply convert the image to another format.
image.psd?format=png
image.psd?format=jpg
This plugin (PsdReader plugin) is part of the Elite 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.