• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Fwd: er.attachment.thumbnail.ImageIOImageProcessor && Watermark Files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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:

From: Johnny Miller <email@hidden>
Date: June 17, 2009 1:05:47 PM HST
To: Development WebObjects <email@hidden>
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.com
e: email@hidden
p: 808.661.7962


Johnny Miller
Kahalawai Media Corp
w: www.kahalawai.com
e: email@hidden
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

  • Follow-Ups:
    • Re: er.attachment.thumbnail.ImageIOImageProcessor && Watermark Files
      • From: Mike Schrag <email@hidden>
References: 
 >er.attachment.thumbnail.ImageIOImageProcessor && Watermark Files (From: Johnny Miller <email@hidden>)

  • Prev by Date: Re: er.attachment.thumbnail.ImageIOImageProcessor && Watermark Files
  • Next by Date: Re: er.attachment.thumbnail.ImageIOImageProcessor && Watermark Files
  • Previous by thread: Re: er.attachment.thumbnail.ImageIOImageProcessor && Watermark Files
  • Next by thread: Re: er.attachment.thumbnail.ImageIOImageProcessor && Watermark Files
  • Index(es):
    • Date
    • Thread