Image

Mask to Existing image

sorenknud's picture

Hi,

I often want to add an alpha channel to an image in QC.

Is there some kind of good reason why there is not a patch like this:

INPUTS: Image, Mask OUTPUTS: Image (with alpha channel defined by the mask input)

It seems odd to me that i cannot do this very simple....

best, soren

Apple's Image Exporter Plugin

volkerk's picture

I want to be able to write images out of QC and Apple's "Image Exporter" plugin is a good start. Unfortunately, it does not allow for custom file names, only the path. Files are always called "Image-00001.png" and the index is increased every time a new image is written.

I tried to muck around with the plugin source code to change it that the path input is used as path + filename. but it turned out i do not know enough about c#, tried but could not figure it out.

i know it is very simple, this is the relevant code snippet:

fileURL = [NSURL fileURLWithPath:[Bad link]];
imageDestination = (fileURL ? CGImageDestinationCreateWithURL((CFURLRef)fileURL, kUTTypePNG, 1, NULL) : NULL);

how do i change it to use self.inputPath as the path and filename?

plugin xcode source: http://developer.apple.com/mac/library/samplecode/ImageExporter/Introduc...

thx for your help

Drop Alpha Channel (Composition by smokris)

Author: smokris
License: MIT
Date: 2010.02.07
Compatibility: 10.5, 10.6
Categories:
Required plugins:
(none)

Removes the alpha channel from an image (i.e., makes it fully opaque).

Image Rehab (Composition by smokris)

Author: smokris
License: MIT
Date: 2010.02.07
Compatibility: 10.5, 10.6
Categories:
Required plugins:
(none)

Core Image is incredibly powerful, but sometimes produces images with non-obvious properties. Image Rehab attempts to clean up some of these properties.

  • Image Origin is restored to (0,0) — potentially useful after cropping an image.
  • Unbounded Images are trimmed to the dimensions of the Rendering Destination.