Commit Graph

28 Commits

Author SHA1 Message Date
Valerio Mazzeo e709a04e89 added CMYK unsupported color space model 2015-12-30 15:45:14 +00:00
Shayan Yousefizadeh 95468315fc Fixes a bug where image scale & orientation are ignored when decoding / decompressing an image. 2015-11-17 18:24:48 +00:00
lagapollo 65fbc3b85a Memory usage upgrade
autorelease the bitmap context for clearing cache when memory warnings
2015-10-07 17:20:45 +02:00
Isaac Paul d00d368cdb Fix unsupported colorspace issue.
Without this fix, this url: https://abs.twimg.com/sticky/default_profile_images/default_profile_3_normal.png isn't correctly decoded and the method returns a nil image.. perhaps there should be a failsafe that checks the return value and returns the input image instead if the return value is nil.
2015-08-21 10:59:07 -04:00
mythodeia fb62c3fde1 better handling of colorspace models 2015-07-17 00:11:54 +03:00
mythodeia 4cfb12c01c fix unsupported parameter combination issues
when CGBitmapContextCreate is called
2015-07-15 10:45:31 +03:00
Fabrice Aneche 6dc02bd8f7 reformat code (appcode) 2014-01-06 17:12:24 -08:00
Olivier Poitrey 1dbb79f903 Refactor GIF support
Remove GIF specific code from main source, isolate it in a UIImage category to ease future addition of format support
2013-06-07 19:39:07 +02:00
Martin Conte Mac Donell de19c24241 [BUG] Fix invalid alpha on JPEG files 2013-02-13 21:55:26 -03: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
Martin Conte Mac Donell 12196f4de6 Fixed CGBitmapContextCreate warnings for invalid alpha properties 2013-01-17 15:14:40 -03:00
Reid Main f800a52f1c Fixed bug where decodedImageWithImage: ignored image scale and orientation. 2012-12-15 17:59:00 -05:00
Matej Bukovinski 37f71de26c Using the source image's the color space for image decoding (fix #237)
Should fix most system warnings regarding invalid context configurations
2012-12-13 23:11:40 +01:00
Olivier Poitrey a7af2a19e4 Try to fix decode image error message 2012-11-19 17:59:26 +01:00
Matej Bukovinski d30c2ae209 Improved background image decoding performance.
Tests on large images indicate an up to 4x improvement with regard to the time spent in decodedImageWithImage:.
2012-11-19 15:50:22 +01:00
Olivier Poitrey 0c1dd3c857 Fix CGBitmapContextCreate errors (fix #204) 2012-11-12 00:05:52 +01:00
Olivier Poitrey 326890b476 Fix disk image cache read not setting memory cache + ensure decodedImageWithImage never fail 2012-11-06 10:14:21 +01:00
Olivier Poitrey 2227266c41 First beta of SDWebImage 3.0
This version is a rewrite of the lib using iOS 5.0 as minimum target.
The lib as thus been refactored to use blocks/GCD from the ground up.
As a consequence, all delegate code style has been removed. The result
is a lot less lines of code and more flexibility.
2012-11-04 10:09:10 +01:00
Olivier Poitrey 048bdbb751 Fix alpha handling in image decoder (fix #204) 2012-11-04 00:51:35 +01:00
Jure Žove c609027314 Fixed Alpha chanel detection when decoding images. 2012-11-04 00:49:34 +01:00
Olivier Poitrey 1a360b6faf Revert "Fixed Alpha chanel detection when decoding images."
This reverts commit e6ede1104c.
2012-11-03 21:21:45 +01:00
Jure Žove e6ede1104c Fixed Alpha chanel detection when decoding images. 2012-10-28 19:58:14 +01:00
Javier Soto 487db1b385 Creating the CGBitmapContext with the right bytes per pixel and bitmap info depending on the original image.
This removes an error that was making CGBitmapContext return NULL with some images:
<Error>: CGBitmapContextCreate: unsupported parameter combination: 8 integer bits/component; 32 bits/pixel; 3-component color space; kCGImageAlphaLast; 400 bytes/row.
2012-10-12 13:43:33 -07:00
Nacho Soto 1bf9668d97 Keeping original image alpha info when decoding
This fixes issue #26 and #55, after the change introduced in commit c32f9c03f816dac58a8cac25d6189310272ca9c1
2012-10-10 16:36:53 -07:00
Olivier Poitrey c32f9c03f8 Remove alpha channel (may break some PNG/GIF with alpha, pull request welcome) 2012-09-12 02:45:54 +02:00
Taeho Kim 0d14e54214 Fix SDWebImageDecoder to obey the orientation tag 2012-08-20 18:06:51 +09:00
Olivier Poitrey b52f85b31f Merge branch 'rebasedMaster' of https://github.com/cbowns/SDWebImage into cbowns-rebasedMaster 2012-05-12 00:26:55 +02:00
Olivier Poitrey dd5f15055d Move all source to a subdirectory to comply with XCode 4 standards 2012-05-09 12:37:35 +02:00