Imagema to add a watermark to the picture, the watermark image will change the reason: the color space of the picture does not correspond, the watermark ColorSpace is CMYK

Source: Internet
Author: User
Imagema to add a watermark to the image, the watermark image will change the reason: the color space of the picture does not correspond to the watermark is the original CMYK watermark (actually a composite picture) command: Convert e:\1.jpg e:\water.png-gravity Southeast-geometry +10+10-composite e:\1-1.jpg Original watermark Picture: The resultant composite Picture: Before always thought is the reason of the parameter, so tried the composite of ImageMagick a lot of parameters, Composite-compose screen-gravity Center e:\\water.png e:\\1-480.jpg e:\\1-480-2.jpg Composite-compose bumpmap-gravit  Y Center e:\\water.png e:\\1-480.jpg-alpha Set e:\\1-480-2.jpg composite-compose clear-gravity Center E:\\water.png E:\\1-480.jpg e:\\1-480-6.jpg composite-compose src-gravity Center e:\\water.png e:\\1-480.jpg e:\\1-480-7.jpg Compos Ite-compose add-gravity Center E:\\water.png e:\\1-480.jpg E:\\1-480-8.jpg but still not. Finally found the reason, is to find the reason, originally wanted to use Java to bring the image generation tool, found that the watermark ungrateful wrong, and later found that the watermark is the color space is CMYK, the watermark is the color space to change to sRGB type, and then generate watermarks, there will be no this problem. command to modify the color space (colorspace): Mogrify-colorspace sRGB e:\\1.jpg or: Convert e:\\1.jpg-colorspace sRGB e:\\1-1.jpg

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.