Devesprit.ImageProcessor & Devesprit.ImageServer
Installation

Copy the Required Files:

To install Devesprit.ImageServer, the first step is to copy DLL files available in Devesprit.ImageServer package based on your own needs according to the table below to the Bin folder of your website.

  • Devesprit.ImageProcessor.dll
  • Devesprit.ImageServer.dll
  • Microsoft.IO.RecyclableMemoryStream.dll

The main DLLs on the system that offer you the primary functions of the system.

These DLLs are able to process images with TIFF, GIF, JPEG, JPG, PNG8, PNG, and BMP formats and contain the following processors:

Alpha, AutoRotate, BackgroundColor, Brightness, Contrast, Crop, DetectEdges, EntropyCrop, Filter, Flip, Format, GaussianBlur, GaussianSharpen, Halftone, Hue, Mask, Meta, Overlay, PageExtractor, Pixelate, Quality, ReplaceColor, Resize, Rotate, RotateBounded, RoundedCorners, Saturation, Tint, Vignette, Watermark.

  • Devesprit.ImageProcessor.Barcode.dll

DLL to work with Barcodes (More information).

  • Devesprit.ImageProcessor.Plugins.Office.dll

DLL to convert the following formats to TIFF images (More information):

DOC, DOCX, RTF, DOT, DOTX, DOTM, ODT, OTT, XLS, XLSX, XLSB, ODS, PPT, PPTX, ODP, PPS, PPSX, PPTM, PPSM, POTX, POTM, VSD, VSDX, VSS, VSSX, VST, VSTX   

  • Devesprit.ImageProcessor.Plugins.AdvancedEffects.dll

This DLL contains the following image processors (More information):

AdjustGammaWeb, CameraViewEffectWeb, DecorativeBorderEffectWeb, DistortCornersEffectWeb, DropShadowEffectWeb, EmbossEffectWeb, FadeEffectWeb, FeatherEffectWeb, FilmstripEffectWeb, FocalGrayscaleEffectWeb, FocalPixelateEffectWeb, FocalSoftenEffectWeb, FocalTintEffectWeb, GlassTableEffectWeb, GlowEffectWeb, HSLWeb, MailStampEffectWeb, MuseumMatteFrameEffectWeb, PerspectiveReflectionEffectWeb, PerspectiveShadowEffectWeb, PerspectiveViewEffectWeb, RemovePixelWeb, ScaleWeb, SilhouetteEffectWeb, SkewWeb, SolarizeEffectWeb, StretchWeb.

  • Devesprit.ImageProcessor.Plugins.AdvancedFormats.dll

DLL to work with the following formats (More information):

PDF, PSD (Photoshop Files), SVG (Vector Images), WebP            

  • Devesprit.ImageServer.Plugins.PostProcessor.dll

DLL to optimize and compress images. This DLL can reduce the size of images up to 60% (More information).

  • Devesprit.ImageServer.Plugins.AzureBlobCache.dll
  • Microsoft.WindowsAzure.Storage.dll
  • Microsoft.Data.Edm.dll
  • Microsoft.Data.OData.dll
  • Microsoft.Data.Services.Client.dll
  • Microsoft.WindowsAzure.Configuration.dll
  • Newtonsoft.Json.dll
  • System.Spatial.dll
DLLs to cache images from AzureBlob Storage service. This service is recommended to high traffic websites and/or to the websites using Load Balanced in order to improve their performance (More information).

 

Apply Changes to Web.Config:

After copying your intended DLLs to the Bin folder, you must open the file Web.Config available in the website's root directory and edit it as follows: First, you must create a reference to Devesprit.ImageServer in HttpModule section in order to have all requests received by Devesprit.ImageServer.

Web.Config
Copy Code
<!-- Devesprit.ImageServer intercept module references -->
< configuration>
  <system.web>
    <httpRuntime targetFramework="4.5" />
    <httpRuntime fcnMode="Single" />
    <httpModules>
      <add name="ImageProcessorModule" type="Devesprit.ImageServer.HttpModules.ImageProcessingModule,
          Devesprit.ImageServer"/>
    </httpModules>
  </system.web>
  <system.webServer>
    <validation validateIntegratedModeConfiguration="false" />
    <modules>
      <add name="ImageProcessorModule" type="Devesprit.ImageServer.HttpModules.ImageProcessingModule,
          Devesprit.ImageServer"/>
    </modules>
  </system.webServer>
  <appSettings>
    <add key="Devesprit.ImageServer.License" value="YOUR LICENSE CODE" />
  </appSettings>
</configuration>

 

System Settings:

If you want to have access to and configure Devesprit.ImageServer settings, add the following items to Web.Config file:

Additional Configuration
Copy Code
<configuration>
  <!-- Devesprit.ImageServer configuration group -->
  <configSections>
  <sectionGroup name="imageProcessor">
    <section name="security" requirePermission="false"
        type="Devesprit.ImageServer.Configuration.ImageSecuritySection, Devesprit.ImageServer"/>
    <section name="processing" requirePermission="false"
        type="Devesprit.ImageServer.Configuration.ImageProcessingSection, Devesprit.ImageServer"/>
    <section name="caching" requirePermission="false"
        type="Devesprit.ImageServer.Configuration.ImageCacheSection, Devesprit.ImageServer"/>
    <section name="officeFilesFormat" requirePermission="false"
        type="Devesprit.ImageProcessor.Plugins.Office.OfficeFilesFormatConfiguration,
              Devesprit.ImageProcessor.Plugins.Office"/>
    <section name="advanceFilesFormat" requirePermission="false"
        type="Devesprit.ImageProcessor.Plugins.AdvancedFormats.AdvanceFilesFormatConfiguration,
              Devesprit.ImageProcessor.Plugins.AdvancedFormats"/>
  </sectionGroup>
  </configSections>
  <imageProcessor >
    <security configSource="config\imageprocessor\security.config" />
    <caching configSource="config\imageprocessor\cache.config" />
    <processing configSource="config\imageprocessor\processing.config" />
    <officeFilesFormat configSource="config\imageprocessor\officeFilesFormat.config" />
    <advanceFilesFormat configSource="config\imageprocessor\advanceFilesFormat.config" />
  </imageProcessor>
</configuration>

After applying the above-mentioned changes, you must create setting files in your website's root directory. To do this, first create the following path in your website's root directory and then create setting files inside it.

%Your Website Root Folder%\config\imageprocessor\

Security.Config File:

This file contains security settings of the system and specifies how images should be loaded. Devesprit.ImageServer is able to load images from different sources. You can create a new source specific to your needs using IImageService interface and specify the settings of your source in this file.
For more information about Image Services and Security settings, click here!

 

Cache.Config File:

This file contains the Cache settings. It specifies where the images will be saved after processing and how long they will be preserved. You can create your own SystemCache using IImageCache interface.
For more information about cache settings, click here!

 

Processing.Config File:

This file contains image processors' settings.
For more information about these settings, click here!

 

AdvanceFilesFormat.Config File:

This file contains AdvancedFormats plugin settings.
For more information about these settings, click here!

 

OfficeFilesFormat.Config File:

This file contains OfficeFormats plugin settings.
For more information about these settings, click here!  

 

Let's Get Started!

Now that you have installed and configured your Devesprit.ImageServer, you are ready to use it. To start to work with Devesprit.ImageServer, click here!