Skip to content

Commit 7dd3561

Browse files
committed
Removed dpi
Because it didn't get the correct dpi from the file.
1 parent 7bca44c commit 7dd3561

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

FindImageResolution/BookImageResolution.cs

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,9 @@ private IEnumerable<ImageResolutionEventArgs> CheckSlowPages(Book book)
7878
if (image != null)
7979
{
8080
string width = image.Width.ToString(), height = image.Height.ToString();
81-
string dpi = image.VerticalResolution == image.HorizontalResolution ? image.VerticalResolution.ToString() : $"{image.VerticalResolution.ToString()}V & {image.HorizontalResolution.ToString()}H";
82-
resolutions.Add(new ImageResolutionEventArgs(width, height, dpi));
81+
resolutions.Add(new ImageResolutionEventArgs(width, height));
8382
image.Dispose();
84-
SimpleLogger.Debug($"Read page {page.ImageIndex + 1} from image. {width} X {height} ({dpi}dpi)");
83+
SimpleLogger.Debug($"Read page {page.ImageIndex + 1} from image. {width} X {height}");
8584
}
8685
else
8786
{
@@ -100,13 +99,10 @@ public class ImageResolutionEventArgs : EventArgs
10099
{
101100
public string Width { get; }
102101
public string Height { get; }
103-
public string dpi { get; }
104-
105-
public ImageResolutionEventArgs(string Width, string Height, string dpi = "")
102+
public ImageResolutionEventArgs(string Width, string Height)
106103
{
107104
this.Width = Width;
108105
this.Height = Height;
109-
this.dpi = dpi;
110106
}
111107
}
112108
}

FindImageResolution/ResolutionEnum.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,5 @@ public enum ResolutionEnum
1010
{
1111
Width,
1212
Height,
13-
dpi
1413
}
1514
}

0 commit comments

Comments
 (0)