Commit Graph

365 Commits

Author SHA1 Message Date
Joshua Kalpin 7779896163 Updating comments to be more accurate and fix typos 2013-03-22 15:10:00 -04:00
odanu 474b0d9496 Added SDWebImageCompact.m to Compile sources of the SDWebImage+MKAnnotation target 2013-03-20 03:44:18 -07:00
Olivier Poitrey f04b4a0731 Fix OS_OBJECT_USE_OBJC handling (fix #329) 2013-03-13 14:43:34 +01:00
Olivier Poitrey f747804843 Add some words about SDWebImageRefreshCached in README 2013-03-13 00:11:17 +01:00
Olivier Poitrey b1f1c08be6 Bump version 3.2 2013-03-12 23:40:18 +01:00
Olivier Poitrey fb28dfeb75 Merge pull request #327 from bm-i/patch-1
Fix SDWebImageManager transformDownloadedImage
2013-03-12 15:38:20 -07:00
bm-i 55096d8b91 Fix SDWebImageManager transformDownloadedImage
storing data of transformed image instead of downloaded one
(passing nil to storeImage will generate data)
2013-03-12 23:32:35 +01:00
Olivier Poitrey 8cfd26f78b Disable duplicate disk cache prevention with SDWebImageRefreshCached to handle 302 caching correctly
See https://github.com/rs/SDWebImage/pull/326#issuecomment-14791505 for more info
2013-03-12 19:26:53 +01:00
Olivier Poitrey 9a29af466b Fix typo 2013-03-12 19:15:25 +01:00
Olivier Poitrey eed78e37e8 Ensure image isn't decoded twice if not necessary when SDWebImageRefreshCached flag is used #326 2013-03-12 16:35:35 +01:00
Olivier Poitrey a3e3c61d46 Prevent double disk caching when `SDWebImageRefreshCached` option is used #326 2013-03-12 14:55:29 +01:00
Olivier Poitrey 9b574e58bf Force progressive download off when force refresh is on #326 2013-03-12 14:55:05 +01:00
Olivier Poitrey f097ef7558 Fix NSURLResponse not cached when `SDWebImageDownloaderEnableNSURLCache` is passed #326 2013-03-12 14:31:48 +01:00
Olivier Poitrey 5cd7c0db46 Fix condition logic issue in #326 2013-03-12 14:31:24 +01:00
Steven Chan bbad1bcfcc New option SDWebImageRefreshCached
Even if the image is cached, fetch the URL again anyway. When set,
NSURLCache is enabled in the downloader via the new option
SDWebImageDownloaderEnableNSURLCache.

NSURLCache will handle the protocol caching while SDWebImage remains
useful for offline images.

This option helps deal with images changing behind the same request URL,
e.g. Facebook graph api profile pics where the request URL
https://graph.facebook.com/[userid]/picture returns a redirect to the
actual profile image.

If a cached image exists, the completion block is called once with the
cached image and again with the final image.
2013-03-12 01:08:57 +08:00
Olivier Poitrey 95337c47e9 Merge pull request #311 from sebreh/master
Detect cancelled parent operation in download operation callback
2013-02-26 06:02:41 -08:00
Sebastian Rehnby d57b92cd0e Detect parent operation cancellation in download operation completion block 2013-02-26 12:08:55 +01:00
Olivier Poitrey 05dd3f4815 Merge pull request #307 from nebillo/master
Optimizing enumeration of files while cleaning the disk cache
2013-02-20 17:26:00 -08:00
Nebil Kriedi fbf14d2e16 Prefetching file properties in the disk cleaning enumerator 2013-02-21 01:07:44 +00:00
Olivier Poitrey ae57215c29 Merge pull request #302 from n-miyo/fix_cache_policy
Wrong cache policy value.
2013-02-19 17:04:12 -08:00
MIYOKAWA, Nobuyoshi 15c5785320 correct cachePolicy constants.
NSMutableURLRequest accepts NSURLRequestCachePolicy as cachePolicy,
not NSURLCacheStoragePolicy.
2013-02-19 13:10:31 +09:00
Olivier Poitrey f024890ba7 Add (kinda) LIFO queue mode support for image downloading (fix #294) 2013-02-17 03:02:04 +01:00
Olivier Poitrey 350c0bea9a Add completion block support to `SDWebImagePrefetcher` (fix #127) 2013-02-17 02:43:46 +01:00
Olivier Poitrey ebd63a88c1 Add `SDWebImageManager` delegate allowing fine control of manager's cache-in
- `imageManager:shouldDownloadImageForURL:` let delegate to conditionaly block cache-in (fix #134)
- `imageManager:transformDownloadedImage:` let delegate to transform the image prior to cache-in (fix #63, fix #284)
2013-02-17 00:55:27 +01:00
Olivier Poitrey 6f198abd1b Add ability to set custom downloader HTTP headers (fix #171) 2013-02-16 23:33:41 +01:00
Olivier Poitrey 5f535602f1 Merge pull request #299 from Reflejo/master
Fix "Alpha on JPEG with no alpha" when decoding
2013-02-16 10:41:14 -08:00
Olivier Poitrey b27d5719c2 Synchronize access to SDWebImageManager's mutable structures (fix #301) 2013-02-16 17:49:27 +01:00
Martin Conte Mac Donell de19c24241 [BUG] Fix invalid alpha on JPEG files 2013-02-13 21:55:26 -03:00
Olivier Poitrey a8a398386b Merge pull request #297 from inamiy/disk-cache
Add synchronous disk-cache loading method.
2013-02-13 07:21:31 -08:00
Yasuhiro Inami 17cc72d5ab Add synchronous disk-cache loading method. 2013-02-13 19:07:56 +09:00
Olivier Poitrey de485a8618 Fix downloader queue using assign instead of strong under iOS 6 2013-02-12 01:17:55 +01:00
Olivier Poitrey 63178bde3c Revert "Fixed CGBitmapContextCreate warnings for invalid alpha properties"
This reverts commit 12196f4de6.
It adds alpha on JPEG with no alpha.
2013-02-07 18:15:16 +01:00
Olivier Poitrey 87568ce141 Merge pull request #287 from NachoSoto/disk-cache
Check SDWebImageCacheMemoryOnly for disk caching
2013-01-29 15:02:01 -08:00
NachoSoto 42c7455776 Check SDWebImageCacheMemoryOnly for disk caching 2013-01-29 20:10:09 +00:00
Olivier Poitrey e7c02bb910 Migrate the no longer github supported download page to a wiki page 2013-01-21 09:36:08 +01:00
Olivier Poitrey 3016754250 Share framework target 2013-01-21 09:27:53 +01:00
Olivier Poitrey 85dacacb23 Bump version to 3.1 2013-01-21 09:24:43 +01:00
Olivier Poitrey 0ee103263c Merge pull request #277 from Reflejo/upstream
Fixed CGBitmapContextCreate warnings for invalid alpha properties
2013-01-17 13:52:47 -08:00
Olivier Poitrey 788ff6759f Merge pull request #278 from Reflejo/invalidcost
Invalid cost calculation when saving image to memory cache
2013-01-17 13:48:48 -08:00
Martin Conte Mac Donell 73884be367 Invalid cost calculation when saving image to memory cache 2013-01-17 15:49:19 -03:00
Martin Conte Mac Donell 12196f4de6 Fixed CGBitmapContextCreate warnings for invalid alpha properties 2013-01-17 15:14:40 -03:00
Olivier Poitrey 815d1c5eae Merge pull request #274 from reidmain/master
NSInvalidArgumentException is thrown if a nil NSURL is downloaded.
2013-01-16 22:58:21 -08:00
Reid Main 599636fa58 Removed creation of NSError when a nil URL is downloaded. 2013-01-16 22:22:33 -05:00
Reid Main b59b42e6b5 Fixed bug where NSInvalidArgumentException was thrown if an image with a nil URL was downloaded. 2013-01-16 14:53:38 -05:00
Olivier Poitrey bc29d0a7ae Fix podspec (fix #253) 2013-01-16 12:10:53 +01:00
Olivier Poitrey 1e53e91513 Add imageFromMemoryCacheForKey: method to synchronously query the memory cache (fix #263) 2013-01-16 11:43:21 +01:00
Olivier Poitrey 555a320b9e Merge pull request #260 from kawanet/master
isRunning method added at SDWebImageManager
2013-01-16 02:26:04 -08:00
Olivier Poitrey a755f64752 Merge pull request #268 from matej/prefetcher-fix
Don't dispatch cancelAll calls.
2013-01-11 05:34:49 -08:00
Matej Bukovinski e31b157394 Don't dispatch cancelAll calls.
- should fix pre-fetcher problems #247
- cancelAll should be always called using the main thread
2013-01-11 13:54:54 +01:00
Olivier Poitrey b398208beb Do not mark URLs a fail when error is due to missing network connection 2013-01-11 01:14:56 +01:00