From c66f5c90ef3ba0c3e81be7d5d0772cce4e483c82 Mon Sep 17 00:00:00 2001 From: DreamPiggy Date: Wed, 29 May 2019 15:12:14 +0800 Subject: [PATCH] Replace the unavailable Demo test images with the new images from Kodak site --- Examples/SDWebImage Demo/MasterViewController.m | 5 +++-- Examples/SDWebImage TV Demo/ViewController.m | 2 +- Tests/Tests/SDWebImageManagerTests.m | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Examples/SDWebImage Demo/MasterViewController.m b/Examples/SDWebImage Demo/MasterViewController.m index fcedeffe..ba11fa89 100644 --- a/Examples/SDWebImage Demo/MasterViewController.m +++ b/Examples/SDWebImage Demo/MasterViewController.m @@ -76,8 +76,9 @@ @"http://via.placeholder.com/200x200.jpg", nil]; - for (int i=0; i<100; i++) { - [self.objects addObject:[NSString stringWithFormat:@"https://s3.amazonaws.com/fast-image-cache/demo-images/FICDDemoImage%03d.jpg", i]]; + for (int i=1; i<25; i++) { + // From http://r0k.us/graphics/kodak/, 768x512 resolution, 24 bit depth PNG + [self.objects addObject:[NSString stringWithFormat:@"http://r0k.us/graphics/kodak/kodak/kodim%02d.png", i]]; } } return self; diff --git a/Examples/SDWebImage TV Demo/ViewController.m b/Examples/SDWebImage TV Demo/ViewController.m index 6d001704..e1e88bf9 100644 --- a/Examples/SDWebImage TV Demo/ViewController.m +++ b/Examples/SDWebImage TV Demo/ViewController.m @@ -27,7 +27,7 @@ // Do any additional setup after loading the view, typically from a nib. [[SDImageCodersManager sharedManager] addCoder:[SDImageWebPCoder sharedCoder]]; - [self.imageView1 sd_setImageWithURL:[NSURL URLWithString:@"http://s3.amazonaws.com/fast-image-cache/demo-images/FICDDemoImage001.jpg"]]; + [self.imageView1 sd_setImageWithURL:[NSURL URLWithString:@"https://nokiatech.github.io/heif/content/images/ski_jump_1440x960.heic"]]; [self.imageView2 sd_setImageWithURL:[NSURL URLWithString:@"http://www.ioncannon.net/wp-content/uploads/2011/06/test2.webp"]]; [self.imageView3 sd_setImageWithURL:[NSURL URLWithString:@"https://raw.githubusercontent.com/liyong03/YLGIFImage/master/YLGIFImageDemo/YLGIFImageDemo/joy.gif"]]; [self.imageView4 sd_setImageWithURL:[NSURL URLWithString:@"http://littlesvr.ca/apng/images/SteamEngine.webp"]]; diff --git a/Tests/Tests/SDWebImageManagerTests.m b/Tests/Tests/SDWebImageManagerTests.m index 2e6d0f3b..72d65f22 100644 --- a/Tests/Tests/SDWebImageManagerTests.m +++ b/Tests/Tests/SDWebImageManagerTests.m @@ -66,7 +66,7 @@ // need a bigger image here, that is why we don't use kTestJPEGURL // if the image is too small, it will get downloaded before we can cancel :) - NSURL *url = [NSURL URLWithString:@"https://s3.amazonaws.com/fast-image-cache/demo-images/FICDDemoImage001.jpg"]; + NSURL *url = [NSURL URLWithString:@"https://raw.githubusercontent.com/liyong03/YLGIFImage/master/YLGIFImageDemo/YLGIFImageDemo/joy.gif"]; [[SDWebImageManager sharedManager] loadImageWithURL:url options:0 progress:nil completed:^(UIImage * _Nullable image, NSData * _Nullable data, NSError * _Nullable error, SDImageCacheType cacheType, BOOL finished, NSURL * _Nullable imageURL) { XCTFail(@"Should not get here"); }];