Skip to content
This repository has been archived by the owner on Sep 6, 2018. It is now read-only.

Avoid color conversion if possible #23

Merged
merged 3 commits into from
May 6, 2017
Merged

Conversation

djbe
Copy link
Member

@djbe djbe commented Apr 16, 2017

Fixes #20.

When we convert a color from any color space to the calibrated RGB color space, we're (potentially) throwing away information. The only reason the conversion is there in the first place, is in case the color is in (for example) grayscale, and thus has no red, green and blue components.

This simply adds a check to avoid conversions if possible.

@djbe djbe force-pushed the feature/colorspace-fix branch from d3fe253 to 7feb848 Compare April 16, 2017 19:24
@djbe djbe force-pushed the feature/colorspace-fix branch from 7feb848 to 761358a Compare April 24, 2017 19:53
@djbe djbe mentioned this pull request May 2, 2017
18 tasks
@djbe djbe force-pushed the feature/colorspace-fix branch from 761358a to efe1aa9 Compare May 2, 2017 22:52
@AliSoftware AliSoftware merged commit 49bc45a into master May 6, 2017
AliSoftware pushed a commit to SwiftGen/templates that referenced this pull request May 6, 2017
@AliSoftware AliSoftware deleted the feature/colorspace-fix branch May 6, 2017 21:49
@djbe djbe added this to the 1.1.0 milestone May 7, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants