Fwd: er.attachment.thumbnail.ImageIOImageProcessor && Watermark Files
Fwd: er.attachment.thumbnail.ImageIOImageProcessor && Watermark Files
- Subject: Fwd: er.attachment.thumbnail.ImageIOImageProcessor && Watermark Files
- From: Johnny Miller <email@hidden>
- Date: Wed, 17 Jun 2009 13:33:07 -1000
OK,
I get it now. If you look at ImageIOImageProcessorjnilib.m
When it applies the watermark it uses a dissolve filter. IMHO, I like this way better:
CIFilter *dissolveFilter = [CIFilter filterWithName:@"CISourceOverCompositing"]; [dissolveFilter setValue:watermarkImage forKey:@"inputImage"]; [dissolveFilter setValue:outputImage forKey:@"inputBackgroundImage"]; outputImage = [dissolveFilter valueForKey:@"outputImage"];
This way it uses the CISourceOverCompositing filter and you have control over how opaque you want to make the watermark when you create it in the image editor.
Jon Begin forwarded message: Date: June 17, 2009 1:05:47 PM HST Subject: er.attachment.thumbnail.ImageIOImageProcessor && Watermark Files
Hi, Has anyone attempted to use a watermark file in conjunction with er.attachment.thumbnail.ImageIOImageProcessor? I'm having some strange results. I'm passing a PNG with a solid background and text as the watermark - If the background is black and the text is white - only the text of the watermark shows up. If the background is gray and the text is white - the watermark's background appears white and semi-transparent. The text is normal. If the background is white and the text is black - the watermark's background is white and opaque while the text does not appear at all i.e. you see through to the underlying image. Also, it would be nice if you could specify where the watermark appears e.g. left | center | right and top | center | bottom. Johnny Miller Kahalawai Media Corp w: www.kahalawai.come: email@hiddenp: 808.661.7962
Johnny Miller Kahalawai Media Corp p: 808.661.7962 |
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden