PreserveColor
✖
PreserveColor
✖
is an option for ImageRestyle and related functions that specifies whether to preserve colors in the original image.
Details

- With PreserveColor->False, ImageRestyle takes colors mainly from the sample image rather than from the original image.
Examples
Basic Examples (1)Summary of the most common use cases
By default, style transfer in ImageRestyle affects the image color:
In[1]:=1

✖
https://wolfram.com/xid/0h2lm843i2-s6k75x
Out[1]=1

Use PreserveColor to preserve the colors of the original image:
In[2]:=2

✖
https://wolfram.com/xid/0h2lm843i2-3p3i19
Out[2]=2

Wolfram Research (2017), PreserveColor, Wolfram Language function, https://reference.wolfram.com/language/ref/PreserveColor.html.
✖
Wolfram Research (2017), PreserveColor, Wolfram Language function, https://reference.wolfram.com/language/ref/PreserveColor.html.
Text
Wolfram Research (2017), PreserveColor, Wolfram Language function, https://reference.wolfram.com/language/ref/PreserveColor.html.
✖
Wolfram Research (2017), PreserveColor, Wolfram Language function, https://reference.wolfram.com/language/ref/PreserveColor.html.
CMS
Wolfram Language. 2017. "PreserveColor." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/PreserveColor.html.
✖
Wolfram Language. 2017. "PreserveColor." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/PreserveColor.html.
APA
Wolfram Language. (2017). PreserveColor. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/PreserveColor.html
✖
Wolfram Language. (2017). PreserveColor. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/PreserveColor.html
BibTeX
✖
@misc{reference.wolfram_2025_preservecolor, author="Wolfram Research", title="{PreserveColor}", year="2017", howpublished="\url{https://reference.wolfram.com/language/ref/PreserveColor.html}", note=[Accessed: 02-April-2025
]}
BibLaTeX
✖
@online{reference.wolfram_2025_preservecolor, organization={Wolfram Research}, title={PreserveColor}, year={2017}, url={https://reference.wolfram.com/language/ref/PreserveColor.html}, note=[Accessed: 02-April-2025
]}