Changeset 73112 in webkit
- Timestamp:
- Dec 2, 2010 12:05:30 AM (13 years ago)
- Location:
- trunk
- Files:
-
- 3 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r73111 r73112 1 2010-12-02 Adam Barth <abarth@webkit.org> 2 3 Reviewed by Eric Seidel. 4 5 Gray-scale JPEG images with a color profile are stretched horizonally 6 https://bugs.webkit.org/show_bug.cgi?id=49950 7 8 Test that we properly render gray-scale JPEGs with embedded color 9 profiles. 10 11 * fast/images/gray-scale-jpeg-with-color-profile.html: Added. 12 * fast/images/resources/flowchart.jpg: Added. 13 * platform/mac/fast/images/gray-scale-jpeg-with-color-profile-expected.txt: Added. 14 1 15 2010-12-01 Daniel Bates <dbates@rim.com> 2 16 -
trunk/WebCore/ChangeLog
r73094 r73112 1 2010-12-02 Adam Barth <abarth@webkit.org> 2 3 Reviewed by Eric Seidel. 4 5 Gray-scale JPEG images with a color profile are stretched horizonally 6 https://bugs.webkit.org/show_bug.cgi?id=49950 7 8 Turns out gray-scale JPEGs with color profiles have the same issue as 9 PNGs. As with PNGs, we suppress now suppress the color profile for 10 gray-scale JPEGs. Most importantly, this patch adds a test. 11 12 Test: fast/images/gray-scale-jpeg-with-color-profile.html 13 14 * platform/image-decoders/jpeg/JPEGImageDecoder.cpp: 15 (WebCore::JPEGImageReader::decode): 16 1 17 2010-12-01 Geoffrey Garen <ggaren@apple.com> 2 18 -
trunk/WebCore/platform/image-decoders/ImageDecoder.h
r72341 r73112 317 317 virtual bool supportsAlpha() const { return true; } 318 318 319 void setIgnoreGammaAndColorProfile(bool flag) { m_ignoreGammaAndColorProfile = flag; } 320 319 321 // Whether or not the gamma and color profile are applied. 320 322 bool ignoresGammaAndColorProfile() const { return m_ignoreGammaAndColorProfile; } -
trunk/WebCore/platform/image-decoders/jpeg/JPEGImageDecoder.cpp
r72341 r73112 209 209 switch (m_info.jpeg_color_space) { 210 210 case JCS_GRAYSCALE: 211 case JCS_YCbCr: 212 // Grayscale images get "upsampled" by libjpeg. If we use 213 // their color profile, CoreGraphics will "upsample" them 214 // again, resulting in horizontal distortions. 215 m_decoder->setIgnoreGammaAndColorProfile(true); 216 // Note fall-through! 211 217 case JCS_RGB: 212 case JCS_YCbCr:213 218 m_info.out_color_space = JCS_RGB; 214 219 break;
Note: See TracChangeset
for help on using the changeset viewer.