You are here: GD and multiplying layers (images) or Imagick and changing colors « All PHP « IT news, forums, messages
GD and multiplying layers (images) or Imagick and changing colors

Posted by Marcin on 08/04/07 18:21

Hi all,

I am trying to merge two images with multiplying their values (just like
multiplying layers in any image processing tool, e.g. Photoshop) - using
GD library.

All I found is function imagelayereffect(), but option
IMG_EFFECT_MULTIPLY is apparently not implemented... My code looks like
this:

imagelayereffect($mapImage, IMG_EFFECT_MULTIPLY);
imagecopymerge($mapImage, $clickImage, 10, 10, 0, 0, $owidth, $oheight,
100);

and it of course does not work.

Do you have any idea, how to achieve the same as below Imagick code with
GD library??

$mapImage->compositeImage($clickImage, Imagick::COMPOSITE_BUMPMAP,
$x-$halfWidth, $y-$halfWidth);

OR how to optimize color change (color lookup table) with Imagick -
below code takes very long time and works much better with GD... :

$run = 'convert full.png -type TruecolorMatte colors.png -fx
"v.p{0,u*v.h}" final.png';
system($run);

TIA, m.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация