Remove Color



This experimental feature has been made available for you to try so that your feedback can be included in our development process. This feature is still under development and is subject to change without notice. It may be replaced or even removed. It is not intended for use in a production capacity. We do however, encourage you to use it in staging or on pre-production traffic, and to email us with your feedback.

Use Remove Color to remove a specific color from an image and replace it with transparent pixels. This transformation is best for removing solid background colors from product images photographed on clean, consistent backgrounds without any shadows. You can enter a hex value or click the color picker to select the color to remove.

The Tolerance setting defines how close the color needs to be to the selected color before it's changed to fully transparent. By default, Tolerance is set at 0.2. Set the Tolerance to 0.0 to remove only the exact color specified. The maximum permitted Tolerance is 1.0.

The Remove Color transformation may create a hard edge around an image. To minimize these hard edges and make the removal of the color more gradual in appearance, use the Feather option. This option allows you to extend the color removal beyond the specified Tolerance. The pixels in this extended tolerance become semi-transparent, thus creating a softer edge. By default the feather option is disabled (set to 0.0).


Initial processing time

The first real-time request for an image using the feather option may result in a slow transformation time. Subsequent requests are not impacted as derivative images are are served from cache.

If you add the IMQuery transformation to a policy, use the im variable, and select Remove Color, you can use a query string to remove a specified color from an image and replace it with transparent pixels. See Syntax and Examples for the syntax for the query string parameter.