diff --git a/ImageResizer/App.config b/ImageResizer/App.config
index ea710de..7dad33b 100644
--- a/ImageResizer/App.config
+++ b/ImageResizer/App.config
@@ -9,13 +9,61 @@
-
-
- 90x90;300x167;300x225;300x450;620x439;940x530
-
-
- 70
-
-
+
+
+ 90x90;300x167;300x225;300x450;620x439;940x530
+
+
+ 70
+
+
+ 90x90;300x167;300x225;300x450;620x439;940x530
+
+
+ 90x90;300x167;300x225;300x450;620x439;940x530
+
+
+ 90x90;300x167;300x225;300x450;620x439;940x530
+
+
+ 90x90;300x167;300x225;300x450;620x439;940x530
+
+
+ 70
+
+
+ 60
+
+
+ 70
+
+
+ 80
+
+
+ Default
+
+
+ CMS
+
+
+ Feature
+
+
+ Fashion
+
+
+ 0
+
+
+ 0
+
+
+ 0
+
+
+ 50
+
+
diff --git a/ImageResizer/Lauren.Designer.cs b/ImageResizer/Lauren.Designer.cs
index 2421502..2422999 100644
--- a/ImageResizer/Lauren.Designer.cs
+++ b/ImageResizer/Lauren.Designer.cs
@@ -37,9 +37,17 @@ private void InitializeComponent()
this.trackBar1 = new System.Windows.Forms.TrackBar();
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
+ this.panel1 = new System.Windows.Forms.Panel();
+ this.radioButton4 = new System.Windows.Forms.RadioButton();
+ this.radioButton3 = new System.Windows.Forms.RadioButton();
+ this.radioButton2 = new System.Windows.Forms.RadioButton();
+ this.radioButton1 = new System.Windows.Forms.RadioButton();
+ this.label3 = new System.Windows.Forms.Label();
+ this.label4 = new System.Windows.Forms.Label();
((System.ComponentModel.ISupportInitialize)(this.PicOrig)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.trackBar1)).BeginInit();
+ this.panel1.SuspendLayout();
this.SuspendLayout();
//
// openFileDialog1
@@ -49,11 +57,12 @@ private void InitializeComponent()
// button1
//
this.button1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
- this.button1.Location = new System.Drawing.Point(374, 429);
+ this.button1.Location = new System.Drawing.Point(378, 429);
this.button1.Name = "button1";
- this.button1.Size = new System.Drawing.Size(75, 23);
+ this.button1.Size = new System.Drawing.Size(71, 23);
this.button1.TabIndex = 0;
this.button1.Text = "Choose File";
+ this.button1.TextAlign = System.Drawing.ContentAlignment.BottomRight;
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
this.button1.DragDrop += new System.Windows.Forms.DragEventHandler(this.textBox1_DragDrop);
@@ -74,9 +83,9 @@ private void InitializeComponent()
this.PicOrig.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
- this.PicOrig.Location = new System.Drawing.Point(12, 95);
+ this.PicOrig.Location = new System.Drawing.Point(12, 140);
this.PicOrig.Name = "PicOrig";
- this.PicOrig.Size = new System.Drawing.Size(437, 328);
+ this.PicOrig.Size = new System.Drawing.Size(437, 283);
this.PicOrig.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.PicOrig.TabIndex = 2;
this.PicOrig.TabStop = false;
@@ -87,7 +96,8 @@ private void InitializeComponent()
this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image")));
this.pictureBox1.Location = new System.Drawing.Point(2, 1);
this.pictureBox1.Name = "pictureBox1";
- this.pictureBox1.Size = new System.Drawing.Size(447, 88);
+ this.pictureBox1.Size = new System.Drawing.Size(453, 102);
+ this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.pictureBox1.TabIndex = 18;
this.pictureBox1.TabStop = false;
//
@@ -98,7 +108,7 @@ private void InitializeComponent()
this.trackBar1.Location = new System.Drawing.Point(12, 429);
this.trackBar1.Maximum = 100;
this.trackBar1.Name = "trackBar1";
- this.trackBar1.Size = new System.Drawing.Size(352, 45);
+ this.trackBar1.Size = new System.Drawing.Size(279, 45);
this.trackBar1.TabIndex = 19;
this.trackBar1.Value = 70;
this.trackBar1.Scroll += new System.EventHandler(this.trackBar1_Scroll);
@@ -108,21 +118,104 @@ private void InitializeComponent()
//
this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.label1.AutoSize = true;
- this.label1.Location = new System.Drawing.Point(371, 461);
+ this.label1.Location = new System.Drawing.Point(303, 434);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(48, 13);
this.label1.TabIndex = 20;
this.label1.Text = "Quality : ";
+ this.label1.TextAlign = System.Drawing.ContentAlignment.BottomRight;
//
// label2
//
this.label2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.label2.AutoSize = true;
- this.label2.Location = new System.Drawing.Point(416, 461);
+ this.label2.Location = new System.Drawing.Point(359, 434);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(13, 13);
this.label2.TabIndex = 21;
this.label2.Text = "0";
+ this.label2.TextAlign = System.Drawing.ContentAlignment.BottomRight;
+ //
+ // panel1
+ //
+ this.panel1.Controls.Add(this.radioButton4);
+ this.panel1.Controls.Add(this.radioButton3);
+ this.panel1.Controls.Add(this.radioButton2);
+ this.panel1.Controls.Add(this.radioButton1);
+ this.panel1.Location = new System.Drawing.Point(12, 109);
+ this.panel1.Name = "panel1";
+ this.panel1.Size = new System.Drawing.Size(437, 22);
+ this.panel1.TabIndex = 22;
+ //
+ // radioButton4
+ //
+ this.radioButton4.AutoSize = true;
+ this.radioButton4.Location = new System.Drawing.Point(276, 2);
+ this.radioButton4.Name = "radioButton4";
+ this.radioButton4.Size = new System.Drawing.Size(63, 17);
+ this.radioButton4.TabIndex = 3;
+ this.radioButton4.TabStop = true;
+ this.radioButton4.Text = "Profile 4";
+ this.radioButton4.UseVisualStyleBackColor = true;
+ this.radioButton4.CheckedChanged += new System.EventHandler(this.radioButton4_CheckedChanged);
+ //
+ // radioButton3
+ //
+ this.radioButton3.AutoSize = true;
+ this.radioButton3.Location = new System.Drawing.Point(185, 2);
+ this.radioButton3.Name = "radioButton3";
+ this.radioButton3.Size = new System.Drawing.Size(63, 17);
+ this.radioButton3.TabIndex = 2;
+ this.radioButton3.TabStop = true;
+ this.radioButton3.Text = "Profile 3";
+ this.radioButton3.UseVisualStyleBackColor = true;
+ this.radioButton3.CheckedChanged += new System.EventHandler(this.radioButton3_CheckedChanged);
+ //
+ // radioButton2
+ //
+ this.radioButton2.AutoSize = true;
+ this.radioButton2.Location = new System.Drawing.Point(94, 2);
+ this.radioButton2.Name = "radioButton2";
+ this.radioButton2.Size = new System.Drawing.Size(63, 17);
+ this.radioButton2.TabIndex = 1;
+ this.radioButton2.TabStop = true;
+ this.radioButton2.Text = "Profile 2";
+ this.radioButton2.UseVisualStyleBackColor = true;
+ this.radioButton2.CheckedChanged += new System.EventHandler(this.radioButton2_CheckedChanged);
+ //
+ // radioButton1
+ //
+ this.radioButton1.AutoSize = true;
+ this.radioButton1.Location = new System.Drawing.Point(3, 2);
+ this.radioButton1.Name = "radioButton1";
+ this.radioButton1.Size = new System.Drawing.Size(63, 17);
+ this.radioButton1.TabIndex = 0;
+ this.radioButton1.TabStop = true;
+ this.radioButton1.Text = "Profile 1";
+ this.radioButton1.UseVisualStyleBackColor = true;
+ this.radioButton1.CheckedChanged += new System.EventHandler(this.radioButton1_CheckedChanged);
+ //
+ // label3
+ //
+ this.label3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
+ this.label3.AutoSize = true;
+ this.label3.Location = new System.Drawing.Point(359, 456);
+ this.label3.Name = "label3";
+ this.label3.Size = new System.Drawing.Size(13, 13);
+ this.label3.TabIndex = 24;
+ this.label3.Text = "0";
+ this.label3.TextAlign = System.Drawing.ContentAlignment.BottomRight;
+ //
+ // label4
+ //
+ this.label4.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
+ this.label4.AutoSize = true;
+ this.label4.Location = new System.Drawing.Point(303, 456);
+ this.label4.Name = "label4";
+ this.label4.Size = new System.Drawing.Size(56, 13);
+ this.label4.TabIndex = 23;
+ this.label4.Text = "Max Size :";
+ this.label4.TextAlign = System.Drawing.ContentAlignment.BottomRight;
//
// Lauren
//
@@ -130,6 +223,9 @@ private void InitializeComponent()
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(455, 478);
+ this.Controls.Add(this.label3);
+ this.Controls.Add(this.label4);
+ this.Controls.Add(this.panel1);
this.Controls.Add(this.label2);
this.Controls.Add(this.label1);
this.Controls.Add(this.trackBar1);
@@ -138,12 +234,14 @@ private void InitializeComponent()
this.Controls.Add(this.textBox1);
this.Controls.Add(this.button1);
this.Name = "Lauren";
- this.Text = "Lauren - Largely AUtomated REsiziNg tool";
+ this.Text = "Lauren";
this.DragDrop += new System.Windows.Forms.DragEventHandler(this.ImageResizer_DragDrop);
this.DragEnter += new System.Windows.Forms.DragEventHandler(this.ImageResizer_DragEnter);
((System.ComponentModel.ISupportInitialize)(this.PicOrig)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.trackBar1)).EndInit();
+ this.panel1.ResumeLayout(false);
+ this.panel1.PerformLayout();
this.ResumeLayout(false);
this.PerformLayout();
@@ -159,6 +257,13 @@ private void InitializeComponent()
private System.Windows.Forms.TrackBar trackBar1;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
+ private System.Windows.Forms.Panel panel1;
+ private System.Windows.Forms.RadioButton radioButton4;
+ private System.Windows.Forms.RadioButton radioButton3;
+ private System.Windows.Forms.RadioButton radioButton2;
+ private System.Windows.Forms.RadioButton radioButton1;
+ private System.Windows.Forms.Label label3;
+ private System.Windows.Forms.Label label4;
}
}
diff --git a/ImageResizer/Lauren.cs b/ImageResizer/Lauren.cs
index 935efc5..2fab8fa 100644
--- a/ImageResizer/Lauren.cs
+++ b/ImageResizer/Lauren.cs
@@ -1,13 +1,9 @@
using System;
using System.Collections.Generic;
-using System.ComponentModel;
-using System.Data;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Drawing.Imaging;
using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
using System.Windows.Forms;
namespace Lauren
@@ -21,22 +17,28 @@ public partial class Lauren : Form
public Lauren()
{
InitializeComponent();
- List sizes = Properties.Settings.Default.Sizes.Split(';').ToList();
+ SetupProfiles();
+ radioButton1.Checked = true;
+ }
+ private void SetupSizes(List sizes, int CompressionValue, int MaxSize, string ProfileName = "")
+ {
+ pictureBoxes.Clear();
foreach (string size in sizes)
{
- pictureBoxes.Add(createPictureBox(Convert.ToInt16(size.Split('x').First()), Convert.ToInt16(size.Split('x').Last())));
+ pictureBoxes.Add(CreatePictureBox(Convert.ToInt16(size.Split('x').First()), Convert.ToInt16(size.Split('x').Last()), ProfileName));
}
- trackBar1.Value = (int)Properties.Settings.Default.DefaultCompression;
+ trackBar1.Value = CompressionValue;
label2.Text = trackBar1.Value.ToString();
+ label3.Text = MaxSize.ToString();
}
- private PictureBox createPictureBox(int x, int y)
+ private PictureBox CreatePictureBox(int x, int y, string ProfileName)
{
PictureBox picture = new PictureBox();
picture.Size = new Size(x, y);
- picture.Tag = String.Format("{0}x{1}", x, y);
+ picture.Tag = String.Format("{2}{0}x{1}", x, y, ProfileName);
return picture;
}
@@ -76,6 +78,7 @@ private Point DrawFocalPoint(Point xy)
PicOrig.Invalidate();
return xy;
}
+
private void ResizePicture()
{
Image Orig = Image.FromFile(openFileDialog1.FileName);
@@ -83,7 +86,17 @@ private void ResizePicture()
foreach (PictureBox pictureBox in pictureBoxes)
{
- Resize_Image(openFileDialog1.FileName, PicOrig.Image, pictureBox);
+ long fileSize = 0;
+ long maxFileSize = Convert.ToInt64(label3.Text)*1024;
+ long compression = (long)trackBar1.Value;
+
+ fileSize = Resize_Image(openFileDialog1.FileName, PicOrig.Image, pictureBox, compression);
+
+ while (fileSize > maxFileSize && compression > 10 && maxFileSize > 0)
+ {
+ fileSize = Resize_Image(openFileDialog1.FileName, PicOrig.Image, pictureBox, compression);
+ compression -= 1;
+ }
}
}
@@ -253,7 +266,7 @@ private ImageCodecInfo GetEncoder(ImageFormat format)
return null;
}
- private long Resize_Image(string Extension, string filename, Image Original, Size s, PictureBox output)
+ private long Resize_Image(string Extension, string filename, Image Original, Size s, PictureBox output, long compression)
{
System.IO.FileInfo fi = new System.IO.FileInfo(filename);
string sSmallest = fi.DirectoryName + "\\" + fi.Name.Remove(fi.Name.Length - fi.Extension.Length) + "_" + Extension + ".jpg";
@@ -264,7 +277,7 @@ private long Resize_Image(string Extension, string filename, Image Original, Siz
ImageCodecInfo jpgEncoder = GetEncoder(ImageFormat.Jpeg);
System.Drawing.Imaging.Encoder myEncoder = System.Drawing.Imaging.Encoder.Quality;
EncoderParameters myEncoderParameters = new EncoderParameters(1);
- EncoderParameter myEncoderParameter = new EncoderParameter(myEncoder, (long)trackBar1.Value);
+ EncoderParameter myEncoderParameter = new EncoderParameter(myEncoder, compression);
myEncoderParameters.Param[0] = myEncoderParameter;
smallest.Save(sSmallest, jpgEncoder, myEncoderParameters);
@@ -279,9 +292,9 @@ private long Resize_Image(string Extension, string filename, Image Original, Siz
return fi.Length;
}
- private long Resize_Image(string filename, Image Original, PictureBox output)
+ private long Resize_Image(string filename, Image Original, PictureBox output, long compression)
{
- return Resize_Image(output.Tag.ToString(), filename, Original, output.Size, output);
+ return Resize_Image(output.Tag.ToString(), filename, Original, output.Size, output, compression);
}
private void textBox1_DragDrop(object sender, DragEventArgs e)
@@ -338,9 +351,45 @@ private void trackBar1_MouseUp(object sender, MouseEventArgs e)
}
+ private void SetupProfiles()
+ {
+ if (Properties.Settings.Default.Profile1Name == String.Empty) radioButton1.Visible = false;
+ radioButton1.Text = Properties.Settings.Default.Profile1Name;
+
+ if (Properties.Settings.Default.Profile2Name == String.Empty) radioButton2.Visible = false;
+ radioButton2.Text = Properties.Settings.Default.Profile2Name;
+
+ if (Properties.Settings.Default.Profile3Name == String.Empty) radioButton3.Visible = false;
+ radioButton3.Text = Properties.Settings.Default.Profile3Name;
+
+ if (Properties.Settings.Default.Profile4Name == String.Empty) radioButton4.Visible = false;
+ radioButton4.Text = Properties.Settings.Default.Profile4Name;
+ }
+
private void trackBar1_Scroll(object sender, EventArgs e)
{
label2.Text = trackBar1.Value.ToString();
}
+
+ private void radioButton1_CheckedChanged(object sender, EventArgs e)
+ {
+ SetupSizes(Properties.Settings.Default.Profile1Sizes.Split(';').ToList(), (int)Properties.Settings.Default.Profile1Compression, (int)Properties.Settings.Default.Profile1MaxSize, Properties.Settings.Default.Profile1Name);
+ }
+
+ private void radioButton2_CheckedChanged(object sender, EventArgs e)
+ {
+ SetupSizes(Properties.Settings.Default.Profile2Sizes.Split(';').ToList(), (int)Properties.Settings.Default.Profile2Compression, (int)Properties.Settings.Default.Profile2MaxSize, Properties.Settings.Default.Profile2Name);
+
+ }
+
+ private void radioButton3_CheckedChanged(object sender, EventArgs e)
+ {
+ SetupSizes(Properties.Settings.Default.Profile3Sizes.Split(';').ToList(), (int)Properties.Settings.Default.Profile3Compression, (int)Properties.Settings.Default.Profile3MaxSize, Properties.Settings.Default.Profile3Name);
+ }
+
+ private void radioButton4_CheckedChanged(object sender, EventArgs e)
+ {
+ SetupSizes(Properties.Settings.Default.Profile4Sizes.Split(';').ToList(), (int)Properties.Settings.Default.Profile4Compression, (int)Properties.Settings.Default.Profile4MaxSize, Properties.Settings.Default.Profile4Name);
+ }
}
}
diff --git a/ImageResizer/Properties/Settings.Designer.cs b/ImageResizer/Properties/Settings.Designer.cs
index f51dd8c..73bf100 100644
--- a/ImageResizer/Properties/Settings.Designer.cs
+++ b/ImageResizer/Properties/Settings.Designer.cs
@@ -12,7 +12,7 @@ namespace Lauren.Properties {
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "14.0.0.0")]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "15.3.0.0")]
public sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
@@ -38,13 +38,205 @@ public string Sizes {
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("70")]
- public long DefaultCompression {
+ public int DefaultCompression {
get {
- return ((long)(this["DefaultCompression"]));
+ return ((int)(this["DefaultCompression"]));
}
set {
this["DefaultCompression"] = value;
}
}
+
+ [global::System.Configuration.UserScopedSettingAttribute()]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Configuration.DefaultSettingValueAttribute("90x90;300x167;300x225;300x450;620x439;940x530")]
+ public string Profile1Sizes {
+ get {
+ return ((string)(this["Profile1Sizes"]));
+ }
+ set {
+ this["Profile1Sizes"] = value;
+ }
+ }
+
+ [global::System.Configuration.UserScopedSettingAttribute()]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Configuration.DefaultSettingValueAttribute("90x90;300x167;300x225;300x450;620x439;940x530")]
+ public string Profile2Sizes {
+ get {
+ return ((string)(this["Profile2Sizes"]));
+ }
+ set {
+ this["Profile2Sizes"] = value;
+ }
+ }
+
+ [global::System.Configuration.UserScopedSettingAttribute()]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Configuration.DefaultSettingValueAttribute("90x90;300x167;300x225;300x450;620x439;940x530")]
+ public string Profile3Sizes {
+ get {
+ return ((string)(this["Profile3Sizes"]));
+ }
+ set {
+ this["Profile3Sizes"] = value;
+ }
+ }
+
+ [global::System.Configuration.UserScopedSettingAttribute()]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Configuration.DefaultSettingValueAttribute("90x90;300x167;300x225;300x450;620x439;940x530")]
+ public string Profile4Sizes {
+ get {
+ return ((string)(this["Profile4Sizes"]));
+ }
+ set {
+ this["Profile4Sizes"] = value;
+ }
+ }
+
+ [global::System.Configuration.UserScopedSettingAttribute()]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Configuration.DefaultSettingValueAttribute("70")]
+ public int Profile1Compression {
+ get {
+ return ((int)(this["Profile1Compression"]));
+ }
+ set {
+ this["Profile1Compression"] = value;
+ }
+ }
+
+ [global::System.Configuration.UserScopedSettingAttribute()]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Configuration.DefaultSettingValueAttribute("60")]
+ public int Profile2Compression {
+ get {
+ return ((int)(this["Profile2Compression"]));
+ }
+ set {
+ this["Profile2Compression"] = value;
+ }
+ }
+
+ [global::System.Configuration.UserScopedSettingAttribute()]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Configuration.DefaultSettingValueAttribute("70")]
+ public int Profile3Compression {
+ get {
+ return ((int)(this["Profile3Compression"]));
+ }
+ set {
+ this["Profile3Compression"] = value;
+ }
+ }
+
+ [global::System.Configuration.UserScopedSettingAttribute()]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Configuration.DefaultSettingValueAttribute("80")]
+ public int Profile4Compression {
+ get {
+ return ((int)(this["Profile4Compression"]));
+ }
+ set {
+ this["Profile4Compression"] = value;
+ }
+ }
+
+ [global::System.Configuration.UserScopedSettingAttribute()]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Configuration.DefaultSettingValueAttribute("Default")]
+ public string Profile1Name {
+ get {
+ return ((string)(this["Profile1Name"]));
+ }
+ set {
+ this["Profile1Name"] = value;
+ }
+ }
+
+ [global::System.Configuration.UserScopedSettingAttribute()]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Configuration.DefaultSettingValueAttribute("CMS")]
+ public string Profile2Name {
+ get {
+ return ((string)(this["Profile2Name"]));
+ }
+ set {
+ this["Profile2Name"] = value;
+ }
+ }
+
+ [global::System.Configuration.UserScopedSettingAttribute()]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Configuration.DefaultSettingValueAttribute("Feature")]
+ public string Profile3Name {
+ get {
+ return ((string)(this["Profile3Name"]));
+ }
+ set {
+ this["Profile3Name"] = value;
+ }
+ }
+
+ [global::System.Configuration.UserScopedSettingAttribute()]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Configuration.DefaultSettingValueAttribute("Fashion")]
+ public string Profile4Name {
+ get {
+ return ((string)(this["Profile4Name"]));
+ }
+ set {
+ this["Profile4Name"] = value;
+ }
+ }
+
+ [global::System.Configuration.UserScopedSettingAttribute()]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Configuration.DefaultSettingValueAttribute("0")]
+ public int Profile1MaxSize {
+ get {
+ return ((int)(this["Profile1MaxSize"]));
+ }
+ set {
+ this["Profile1MaxSize"] = value;
+ }
+ }
+
+ [global::System.Configuration.UserScopedSettingAttribute()]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Configuration.DefaultSettingValueAttribute("0")]
+ public int Profile2MaxSize {
+ get {
+ return ((int)(this["Profile2MaxSize"]));
+ }
+ set {
+ this["Profile2MaxSize"] = value;
+ }
+ }
+
+ [global::System.Configuration.UserScopedSettingAttribute()]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Configuration.DefaultSettingValueAttribute("0")]
+ public int Profile3MaxSize {
+ get {
+ return ((int)(this["Profile3MaxSize"]));
+ }
+ set {
+ this["Profile3MaxSize"] = value;
+ }
+ }
+
+ [global::System.Configuration.UserScopedSettingAttribute()]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Configuration.DefaultSettingValueAttribute("50")]
+ public int Profile4MaxSize {
+ get {
+ return ((int)(this["Profile4MaxSize"]));
+ }
+ set {
+ this["Profile4MaxSize"] = value;
+ }
+ }
}
}
diff --git a/ImageResizer/Properties/Settings.settings b/ImageResizer/Properties/Settings.settings
index b7fe8f2..3653603 100644
--- a/ImageResizer/Properties/Settings.settings
+++ b/ImageResizer/Properties/Settings.settings
@@ -5,8 +5,56 @@
90x90;300x167;300x225;300x450;620x439;940x530
-
+
70
+
+ 90x90;300x167;300x225;300x450;620x439;940x530
+
+
+ 90x90;300x167;300x225;300x450;620x439;940x530
+
+
+ 90x90;300x167;300x225;300x450;620x439;940x530
+
+
+ 90x90;300x167;300x225;300x450;620x439;940x530
+
+
+ 70
+
+
+ 60
+
+
+ 70
+
+
+ 80
+
+
+ Default
+
+
+ CMS
+
+
+ Feature
+
+
+ Fashion
+
+
+ 0
+
+
+ 0
+
+
+ 0
+
+
+ 50
+
\ No newline at end of file