Glitter over image

IMagick is a native PHP extension to create and modify images using the ImageMagick API. ImageMagick Studio LLC did not write nor does it maintain the IMagick extension, however, IMagick users are welcome to discuss the extension here.
Post Reply
agriz
Posts: 237
Joined: 2011-10-01T02:21:30-07:00
Authentication code: 8675308

Glitter over image

Post by agriz »

Code: Select all

$code0 = "$convert $transparent -resize 500!x375! $temp_transparent";
$code1 = "$convert $glitter -virtual-pixel tile -set option:distort:viewport 500x375 -distort SRT 0 $temp_glitter";
$code2 = "$composite -compose ATop -geometry +0+0 $temp_transparent $original_image $temp_original";
$code3 = "$convert $temp_glitter null: $temp_glitter -compose DstOver -layers composite -loop 0 -layers Optimize $final_image";
I tried this.
$transparent is a small transparent png image.
$glitter is a small glitter image (.gif)
$original_image is a uploaded image

But in the final step, glitter is resized to image size and i just see the glitter only. There is no original image

Image

It is not animating after uploading in imageshack.us
It was animating in localhost, but the original image is gone.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Glitter over image

Post by anthony »

Upload the time to a web service that does not modify the image like imageshack does. I suggest you use dropbox putting the image in the 'public' sub-folder.


I am not quite following your steps without access to the images.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply