Browse Source

Use jpeg instead of jpg.

Former-commit-id: c6c5334eaff8c57cd508e2388b9287fba8c635b3
Former-commit-id: be669dc053bd6ff9cf4d320bd8e6d5cc5eaa775d
Former-commit-id: 2cd963161aa5afe53e6f304c42d2fd4c57383ae7
af/merge-core
dirk 10 years ago
parent
commit
c7606def89
  1. 4
      tests/ImageProcessorCore.Tests/FileTestBase.cs
  2. 8
      tests/ImageProcessorCore.Tests/Profiles/Exif/ExifProfileTests.cs
  3. 2
      tests/ImageProcessorCore.Tests/Profiles/Exif/ExifValueTests.cs
  4. 2
      tests/ImageProcessorCore.Tests/TestImages.cs

4
tests/ImageProcessorCore.Tests/FileTestBase.cs

@ -20,8 +20,8 @@ namespace ImageProcessorCore.Tests
{
//new TestFile(TestImages.Png.P1),
//new TestFile(TestImages.Png.Pd),
new TestFile(TestImages.Jpg.Floorplan), // Perf: Enable for local testing only
new TestFile(TestImages.Jpg.Calliphora),
new TestFile(TestImages.Jpeg.Floorplan), // Perf: Enable for local testing only
new TestFile(TestImages.Jpeg.Calliphora),
//new TestFile(TestImages.Jpg.Cmyk), // Perf: Enable for local testing only
//new TestFile(TestImages.Jpg.Turtle),
//new TestFile(TestImages.Jpg.Fb), // Perf: Enable for local testing only

8
tests/ImageProcessorCore.Tests/Profiles/Exif/ExifProfileTests.cs

@ -17,7 +17,7 @@ namespace ImageProcessorCore.Tests
[Fact]
public void Constructor()
{
using (FileStream stream = File.OpenRead(TestImages.Jpg.Calliphora))
using (FileStream stream = File.OpenRead(TestImages.Jpeg.Calliphora))
{
Image image = new Image(stream);
@ -107,7 +107,7 @@ namespace ImageProcessorCore.Tests
[Fact]
public void ReadWriteInfinity()
{
using (FileStream stream = File.OpenRead(TestImages.Jpg.Floorplan))
using (FileStream stream = File.OpenRead(TestImages.Jpeg.Floorplan))
{
Image image = new Image(stream);
image.ExifProfile.SetValue(ExifTag.ExposureBiasValue, new SignedRational(double.PositiveInfinity));
@ -138,7 +138,7 @@ namespace ImageProcessorCore.Tests
{
Rational[] latitude = new Rational[] { new Rational(12.3), new Rational(4.56), new Rational(789.0) };
using (FileStream stream = File.OpenRead(TestImages.Jpg.Floorplan))
using (FileStream stream = File.OpenRead(TestImages.Jpeg.Floorplan))
{
Image image = new Image(stream);
image.ExifProfile.SetValue(ExifTag.Software, "ImageProcessorCore");
@ -241,7 +241,7 @@ namespace ImageProcessorCore.Tests
private static ExifProfile GetExifProfile()
{
using (FileStream stream = File.OpenRead(TestImages.Jpg.Floorplan))
using (FileStream stream = File.OpenRead(TestImages.Jpeg.Floorplan))
{
Image image = new Image(stream);

2
tests/ImageProcessorCore.Tests/Profiles/Exif/ExifValueTests.cs

@ -13,7 +13,7 @@ namespace ImageProcessorCore.Tests
{
private static ExifValue GetExifValue()
{
using (FileStream stream = File.OpenRead(TestImages.Jpg.Floorplan))
using (FileStream stream = File.OpenRead(TestImages.Jpeg.Floorplan))
{
Image image = new Image(stream);

2
tests/ImageProcessorCore.Tests/TestImages.cs

@ -21,7 +21,7 @@ namespace ImageProcessorCore.Tests
public static string Splash => folder + "splash.png";
}
public static class Jpg
public static class Jpeg
{
private static readonly string folder = "TestImages/Formats/Jpg/";
public static string Cmyk => folder + "cmyk.jpg";

Loading…
Cancel
Save