SHARE
TWEET

Untitled

a guest Jun 26th, 2019 88 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. HttpPostedFileBase file = base.Request.Files["photo"];
  2. ImageResizer.ImageJob i =
  3.     new ImageResizer.ImageJob(file,
  4.                               "~/OrigFiles/" + cvm.Id + ".<ext>",
  5.                               new ImageResizer.Instructions("width=768;height=1024;format=jpg;mode=max;autorotate=true;"));
  6. i.CreateParentDirectory = true;
  7. i.Build();
  8.      
  9. You are using plugins from the Creative Edition: DiskCache (Performance Edition), WatermarkPlugin (Creative Edition)
  10.  
  11. Registered plugins:
  12.  
  13. ImageResizer.Plugins.Basic.DefaultEncoder
  14. ImageResizer.Plugins.Basic.NoCache
  15. ImageResizer.Plugins.Basic.ClientCache
  16. ImageResizer.Plugins.Basic.Diagnostic
  17. ImageResizer.Plugins.Basic.SizeLimiting
  18. ImageResizer.Plugins.MvcRoutingShim.MvcRoutingShimPlugin
  19. ImageResizer.Plugins.DiskCache.DiskCache
  20. ImageResizer.Plugins.Watermark.WatermarkPlugin
  21. ImageResizer.Plugins.Basic.AutoRotate
  22.  
  23. Configuration:
  24.  
  25. <resizer>
  26.   <plugins>
  27.     <add name="MvcRoutingShim" />
  28.     <add name="DiskCache" />
  29.     <add name="Watermark" />
  30.     <add name="AutoRotate" />
  31.   </plugins>
  32.   <watermarks>
  33.     <otherimages path="~/watermarks" right="20" bottom="20" width="20" height="20" />
  34.     <group name="portraitBG">
  35.       <image path="~/PORTRAIT.png" imageQuery="" top="0" left="0" />
  36.       <text text="#{name}" vertical="false" align="center" top="818" fontSize="60" color="FFF" />
  37.     </group>
  38.     <group name="landscapeBG">
  39.       <image path="~/LANDSCAPE.png" imageQuery="" top="0" left="0" />
  40.       <text text="#{name}" vertical="false" left="50" top="650" fontSize="60" color="FFF" />
  41.     </group>
  42.   </watermarks>
  43. </resizer>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top