How use compose hardlight in setImageArtifact() ?

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
thehunter

How use compose hardlight in setImageArtifact() ?

Post by thehunter »

Hi!

I need to blend a image with -hardlight.

But how to do thin in PHP?

I tryed many thing:

Code: Select all

$img->setImageArtifact('compose:args', 'hard-light');
	$imga->setImageArtifact('compose:args', 'hardlight');
	$img->setImageArtifact('compose:hard-light', true);
	$img->setImageArtifact('compose:hardlight', true);
	$img->setImageArtifact('compose:hard-light', 'true');
	$img->setImageArtifact('compose:hardlight', 'true');
	$img->setImageArtifact('compose:args', 'hard-light');
Thanks a lot. :D
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: How use compose hardlight in setImageArtifact() ?

Post by snibgo »

Compositing with hardlight doesn't need an artifact. Just use compositeImage with COMPOSITE_HARDLIGHT.
snibgo's IM pages: im.snibgo.com
Post Reply