Search found 8 matches

by nars
2015-08-04T10:11:29-07:00
Forum: Users
Topic: How i apply a mask to a grayscale image ?
Replies: 10
Views: 5323

Re: How i apply a mask to a grayscale image ?

Yes, I update ImageMagick to a recent version and solved my problem.

Thanks ;)
by nars
2015-08-04T09:18:30-07:00
Forum: Users
Topic: How i apply a mask to a grayscale image ?
Replies: 10
Views: 5323

Re: How i apply a mask to a grayscale image ?

Version: ImageMagick 6.7.7-10 2014-03-06

Platform: Linux - Ubuntu

Thanks
by nars
2015-08-04T08:35:06-07:00
Forum: Users
Topic: How i apply a mask to a grayscale image ?
Replies: 10
Views: 5323

Re: How i apply a mask to a grayscale image ?

My result:

Image

My code:

Code: Select all

convert input2.png mask2.png -alpha off -compose CopyOpacity -composite outMasked_2.png
Why is different?

Thanks
by nars
2015-08-04T08:19:48-07:00
Forum: Users
Topic: How i apply a mask to a grayscale image ?
Replies: 10
Views: 5323

Re: How i apply a mask to a grayscale image ?

yes, it looks fine.. Sorry, bad example :/

With the next images, you can see the differences.

input:
Image

mask:
Image

Thanks
by nars
2015-08-04T05:55:03-07:00
Forum: Users
Topic: How i apply a mask to a grayscale image ?
Replies: 10
Views: 5323

Re: How i apply a mask to a grayscale image ?

The same :/

Mask image:
Image

Input image:
Image
by nars
2015-08-04T03:16:40-07:00
Forum: Users
Topic: How i apply a mask to a grayscale image ?
Replies: 10
Views: 5323

How i apply a mask to a grayscale image ?

Hi, I want apply a mask to an image. (image and mask have the same dimensions) input.png (grayscale) mask.png I used the next code: convert input.png mask.png -alpha off -compare CopyOpacity -composite out.png The mask was applied correctly, but the out.png lost the grayscale (obviously), i think ...
by nars
2015-07-21T02:51:18-07:00
Forum: Users
Topic: how can I add a transparency gradient in a grayscale to an image?
Replies: 15
Views: 13128

Re: how can I add a transparency gradient in a grayscale to an image?

Thank you ;) After your answers, my solution: 1 - convert in.png to RGBA 2 - I did a loop and i change the alpha values. For example: for i, j in zip(range(255+1), list(reversed(range(255+1)))): (i,i,i,j) (255,255,255,0) (254,254,254,1) (253,253,253,2) ... Thank you ;)
by nars
2015-07-17T07:08:17-07:00
Forum: Users
Topic: how can I add a transparency gradient in a grayscale to an image?
Replies: 15
Views: 13128

how can I add a transparency gradient in a grayscale to an image?

Hi, how can I add a transparency gradient in a grayscale to an image which already have background transparent? For example: white color -> 70% transparent gray -> 40% transparent etc -> etc http://i57.tinypic.com/2mgnsdh.png Thanks