Salvatore Randazzo
447f1ccc23
Custom image cache search paths
...
This is particularly useful if you are bundling images with your app that have been cached by SDWebImage. (ie. if you are 'seeding' your app with a core-data file that contains a lot of URL's to images and would like to also seed those images without having to copy every one of them over)
For example, you can tell SDImageCache to add '[[NSBundle mainBundle] resourcePath]' as a custom path, so that the main bundle will be queried for cached images.
This prevents the need for you to copy pre-cached images over to the caches/ImageCache folder that SDImageCache normally checks for.
The custom paths are read-only.
2013-06-07 17:57:28 +02:00
Olivier Poitrey
d38e13c58d
Merge pull request #408 from dlbuckley/issue-406-Failed-URL-Problem
...
#406 - Fixed failed URL problem
2013-06-04 05:12:07 -07:00
Dale Buckley
7d9c93fb51
#406 - Fixed a problem where hitting a failed URL more than once wouldn't call the completion block
2013-06-04 12:04:36 +01:00
Olivier Poitrey
d04fd47f5b
Fix typo in download page URL
2013-06-01 14:23:45 -07:00
Olivier Poitrey
4ab6d18900
Merge pull request #401 from docallag/master
...
Prevent warnings on iOS
2013-05-31 09:12:39 -07:00
David O'Callaghan
1b7305c8a7
Update SDWebImageCompat.h
...
Undefine macros before define to prevent warning on iOS
2013-05-31 12:07:16 +02:00
Olivier Poitrey
e8c5ed17c0
Merge pull request #400 from BB9z/fix/document-parameter
...
Some document improves.
2013-05-27 09:53:45 -07:00
BB9z
51bdfdf0b2
Format code in document.
2013-05-27 18:19:02 +08:00
BB9z
5b6e84a953
Adjust indenting.
2013-05-27 18:10:42 +08:00
BB9z
1f31915e59
Fix a mismatch description.
2013-05-27 18:03:57 +08:00
BB9z
124a87b85f
Fix some document error.
2013-05-27 18:00:26 +08:00
Olivier Poitrey
ff2b30e263
Merge pull request #383 from garthex/white_png_issue
...
fix alpha pngs turning into white pngs
2013-05-14 02:57:12 -07:00
Olivier Poitrey
b8ab9d77b5
Merge pull request #389 from lavoy/master
...
Calls progress block regardless of completion block and options
2013-05-08 20:25:57 -07:00
Andy LaVoy
827fcac89b
call progress block regardless of completion block, options
2013-05-08 15:35:37 -07:00
Olivier Poitrey
899d67ba54
Merge pull request #388 from cfis/synchronize_failed_urls
...
Synchronize self.failedURLs
2013-05-08 05:37:18 -07:00
Charlie Savage
0426f07355
Images can be downloaded in multiple threads. Therefore the call to self.failedURLs containsObject:url must be synchronized to avoid a collection mutation error.
2013-05-07 13:21:04 -06:00
Olivier Poitrey
990df9f828
Update README.md
2013-05-06 15:11:26 +03:00
Kyle Fleming
e3b15e3dbe
fix alpha pngs turning into white pngs when caching when you have a method that transforms the image but doesn't touch the pngs
2013-05-01 14:36:13 -07:00
Olivier Poitrey
4137bce30d
Add prefix to GIF support category's methods
2013-04-29 12:47:37 +02:00
Olivier Poitrey
65807f262e
Merge pull request #379 from lavoy/master
...
Moved scaling to earlier in the process
2013-04-29 03:32:21 -07:00
Olivier Poitrey
eaf6cd26e1
Merge pull request #380 from stylight/master
...
Fixed Podspec by including NS* files into source files
2013-04-29 02:29:39 -07:00
Alexander Kolov
952eeec05a
Include NS* files in source files of Podspec
2013-04-29 12:23:29 +03:00
Andy LaVoy
f58c2ebb43
moved scaling up the process
2013-04-28 20:10:36 -07:00
Andy LaVoy
ad4babd25d
Scale GIF images
2013-04-29 02:41:31 +02:00
Olivier Poitrey
5db0d00ef3
Merge pull request #375 from lavoy/master
...
Animated GIF Support
2013-04-28 15:51:36 -07:00
Andy LaVoy
d789fd92e8
change var name
2013-04-28 15:38:50 -07:00
Andy LaVoy
2a370b062b
updated formatting for project
2013-04-28 14:59:33 -07:00
Andy LaVoy
5bf37d5472
cache the GIF data instead of the jpeg representation
2013-04-28 14:37:47 -07:00
Andy LaVoy
3f98095704
support GIFs
2013-04-28 14:06:54 -07:00
Olivier Poitrey
17d04b70e5
Merge pull request #366 from bm-i/master
...
Fix and make SDScaledImageForPath extensible
2013-04-27 12:13:31 -07:00
Bastian Müller
9eff469cb6
Make SDWebImageManager cache creation extensible
2013-04-27 20:55:06 +02:00
Bastian Müller
55ebe66b4c
Fix and make SDScaledImageForPath extensible
2013-04-27 20:55:06 +02:00
Olivier Poitrey
ae1476b3f2
Merge pull request #340 from odanu/master
...
Add SDWebImageCompact.m to Compile sources of the SDWebImage+MKAnnotation target
2013-04-27 09:35:19 -07:00
Olivier Poitrey
4965c7d09f
Merge pull request #373 from cfis/download_cleanup
...
More SDWebImageDownloader Cleanup
2013-04-27 08:19:04 -07:00
Charlie Savage
d53a47e982
Remove async calls from SDWebImageDownloader. The operation is already run in a background thread also the async calls are unnecessary.
2013-04-26 21:43:11 -06:00
Charlie Savage
b85556fa86
This is an attempt to avoid the crashes in #341 .
...
It won't fix the underlying issue but I hope it will avoid it in most cases.
The various crash reports indicate the underlying download operation is being
freed before the async block in dataReceived is being executed.
This fix change tries to avoid every calling the async block.
2013-04-27 01:00:47 +02:00
Olivier Poitrey
116258502b
Merge pull request #353 from jparise/max-cache-size
...
Support a maximum disk cache size in -cleanDisk.
2013-04-26 14:22:52 -07:00
Olivier Poitrey
308570af2b
Merge pull request #362 from 0xced/patch-1
...
Fix completionBlock setter semantics
2013-04-17 07:36:20 -07:00
Cédric Luthi
0b5291517f
Fix completionBlock setter semantics
...
Using `SDDispatchQueueSetterSementics`, which might be `assign` for a block is a terrible idea.
2013-04-17 16:31:04 +03:00
Randall Li
9f4e6915c7
Added auto release pool to keep memory foot print down when retrieving image from disk in queryDiskCacheForKey
2013-04-05 08:57:11 +02:00
Olivier Poitrey
7d6e17c43c
Merge pull request #355 from u16suzu/fix_double_import
...
Remove double import for SDWebImageDecoder.h
2013-03-29 05:48:29 -07:00
u16suzu
7d12c3e9fc
Remove double import for SDWebImageDecoder.h
2013-03-29 05:17:43 -07:00
Jon Parise
32f011185a
Support a maximum disk cache size in -cleanDisk.
...
Previously, -cleanDisk would only remove cache files that were older
than the configured expiration date. This allowed the disk cache to
grow significantly if a large number of resources were cached over a
short period of time.
This change adds a second (optional) size-based cleaning pass that
removes files from the disk cache until its overall size falls below
half of the configured maximum size. Older files are deleted first.
The size-based pass is disabled by default (maxCacheSize == 0).
2013-03-27 19:06:22 -07:00
Olivier Poitrey
1655803bc7
Merge pull request #352 from jparise/getSize-return-type
...
-getSize now returns an `unsigned long long`.
2013-03-27 15:53:23 -07:00
Jon Parise
1e37b716c7
-getSize now returns an `unsigned long long`.
...
This type now matches the type and width of the value returned by the
`fileSize` accessor of the `NSDictionary (NSFileAttributes)` category
(which is what is used when accumulating the total cache size).
2013-03-27 14:55:30 -07:00
Olivier Poitrey
eda987815b
Merge pull request #351 from Vyazovoy/master
...
New name for SDWebImageDownloaderQueueMode type, typo fixing, strong cycle fixing.
2013-03-27 10:04:09 -07:00
Andrew Vyazovoy
c3968b30ce
Merge branch 'develop'
...
* develop:
Potential strong cycle fixed.
SDWebImageDownloaderQueueMode type renamed. Fixed typo. Added description for renamed type. Type renamed because "queue" notion is a FIFO only, but LIFO is a stack, and if we give the type a neutral name, we can avoid logical inconsistencies.
Fixed typo.
2013-03-27 23:45:47 +07:00
Andrew Vyazovoy
c77652755a
Potential strong cycle fixed.
2013-03-27 23:44:47 +07:00
Andrew Vyazovoy
ee9af6406c
SDWebImageDownloaderQueueMode type renamed. Fixed typo. Added description for renamed type. Type renamed because "queue" notion is a FIFO only, but LIFO is a stack, and if we give the type a neutral name, we can avoid logical inconsistencies.
2013-03-27 23:43:42 +07:00
Andrew Vyazovoy
6284e4070d
Fixed typo.
2013-03-27 22:33:20 +07:00