Page 1 of 2

COMPOSITE/OVER WORKING INCORRECTLY

Posted: 2009-10-04T09:01:00-07:00
by scarlet
FOR AWHILE, A MEMBER OF MINE WAS COMPLAINING BECAUSE SHE WAS HAVING TROUBLE USING COMPOSITE/OVER BUT DID NOT TAKE THE TIME TO GO INTO IT WITH ME, SAYING SHE COULD LIVE WITH IT.

WELL,,,THE OTHER DAY I MET IT HEAD ON MYSELF.

WHEN USING COMPOSITE/OVER, THE WHOLE MATTE TURNS BLACK EXCEPT FOR THE PIECE YOU ARE USING TO COMPOSITE WITH.

IE. IF YOU ARE COMPOSITING ONTO BACKGROUND, THE BACKGROUND WILL TURN BLACK BUT THE GRAPHIC WILL NOT.

THIS IS ALSO HAPPENING WITH COMPOSITE/COPY, (WHICH I THOUGHT WAS A DEFAULT FOR COMPOSITE)

I AM SURPRISED TO SEE NO ONE ELSE REPORTING THIS, SINCE COMPOSITE/OVER IS USED TO OFTEN

SCARLET

Re: COMPOSITE/OVER WORKING INCORRECTLY

Posted: 2009-10-04T09:32:31-07:00
by magick
We cannot reproduce the problem. We tried this link: http://www.imagemagick.org/MagickStudio ... ction=view. And composited a smiley. We went to the composite tag and selected the Over composite operator. The result was a smiley face centered on top of a rose.

Make sure you are using 'Over' rather than 'SrcOver'.

Re: COMPOSITE/OVER WORKING INCORRECTLY

Posted: 2009-10-04T09:59:46-07:00
by scarlet
I JUST CHECK THE NG BOARD WHERE I ASKED IF ANYONE ELSE WAS HAVING PROBLEM AND 5 OTHERS SAID YES. WE ARE ALL ON WEBTV.

I WENT TO
http://studio.webbyland.com/MagickStudi ... Studio.cgi

CLICKED ON THE ROSE FROM THE OUTSIDE EXAMPLE, GOT INSIDE, WENT TO INPUT , GOT THIS URL IN FIRST TEXTAREA TO SHOW YOU EXACTLY WHAT I WAS USING. /home/cristy/public_html/MagickStudio/images/rose.jpg

AFTER I DOUBLED THE SIZE, WENT TO "COMPOSITE" CENTER "OVER"

ALL AROUND THE ROSE WAS BLACK EXCEPT FOR THE CENTER, THE ROSE GRAPHIC THAT I WAS COMPOSITING WITH.

LEVEL= 6.5.6

SCARLET

Re: COMPOSITE/OVER WORKING INCORRECTLY

Posted: 2009-10-04T10:43:59-07:00
by magick
AFTER I DOUBLED THE SIZE, WENT TO "COMPOSITE" CENTER "OVER"
Then what? What did you composite? What were all the settings? When we double the rose size and composite the smiley face (http://www.imagemagick.org/image/smile.gif). The result is as expected, a smiley face composited on top of a rose.

Re: COMPOSITE/OVER WORKING INCORRECTLY

Posted: 2009-10-04T11:22:36-07:00
by scarlet
I WAS TRYING TO SAVE MYSELF TIME
THE MATTE ON THE OUTSIDE OF THE GRAPHIC THAT YOU COMPOSITE WITH TURNS BLACK WITH "OVER" OR "COPY" THAT IS WHY I DOUBLED THE ROSE AND THAT OUTSIDE TURNED BLACK BUT.... NEVER MIND. HERE.

ORIGINAL:
INPUT TO ARBORHOSTING IM-
http://piratevoyager.com/--GRAPHICS/JUN ... -azoth.jpg
440X440

USED THIS GRAPHIC-
http://piratevoyager.com/--GRAPHICS/JUN ... Esmall.jpg
188X120

COMPOSITE/OVER CENTER

ADDED BORDER 10X10 MAGENTA SO THAT BLACK BOUNDARIES WOULD BE VERY PRONOUNCED
RESULT-
http://piratevoyager.com/--GRAPHICS/JUN ... 60x460.jpg

THE FACE SHOWS.
THE BACKGROUND MATTE ALL AROUND IT HAS NOW TURNED BLACK.
HAPPENS EVERYTIME ONE USES
EITHER COMPOSITE/OVER
OR COMPOSITE/COPY

WEBTV
ARBORHOSTING

SCARLET

Re: COMPOSITE/OVER WORKING INCORRECTLY

Posted: 2009-10-04T12:45:42-07:00
by magick
In your case you need to use the SrcOver composite option. The Over composite operator requires that your images include an alpha mask channel. Compositing is an art. See http://www.imagemagick.org/Usage/compose/#compose.

Re: COMPOSITE/OVER WORKING INCORRECTLY

Posted: 2009-10-04T14:41:37-07:00
by LadyTia
YES I HAD THE SAME THING HAPPEN TO ME LAST NIGHT ALSO....WHEN COMP OVER A REDUCED VERSION OF THE SAME GRAPHIC....THE SMALLER ONE SHOWED BUT THE OUTSIDE LARGER PART TURNED BLACK EVEN THOUGH THERE WAS SOMETHING THERE BEFORE...JUST HAD TO USE A DIFFERENT FUNCTION KEY...JUST THOUGHT IT WAS A TEMP BUG...AT LEAST WAS HOPING SO.
ALSO WHEN IN DECORATE...TRIED TO PUT A 0X0 BORDER COLOR "OVER" IT GAVE ME A 1200X??? IMAGE WITH A WHITE BG AND A VERY SMALL GRAPHIC IN THE CENTER....MY ORIG WAS 400X400
TRIED TODAY AND 3X3 BORDER/COLOR...OVER WOULD NOT WORK AT ALL.

Re: COMPOSITE/OVER WORKING INCORRECTLY

Posted: 2009-10-04T16:37:30-07:00
by LadyTia
EXAMPLES
I TOOK THIS BACKGROUND TO IM
http://ersigs.250free.com/1i4i/backs5/softly1.jpg

I TRIED TO COMPOSITE A SMALL GRAPHIC "OVER" THIS BG...THE SMALL GRAPHIC...SHOWS UP NICELY...BUT THE BACKGROUND GRAPHIC TURNED COMPLETELY BLACK...THIS DID NOT START HAPPENING UNTIL SAT NIGHT 10/03/09
http://wakantia.250free.com/AinProgress/IMexample.jpg

THIS CLEARLY SHOWS THERE IS A DEFINATE PROBLEM GOING ON.
LadyTia

Re: COMPOSITE/OVER WORKING INCORRECTLY

Posted: 2009-10-04T17:00:41-07:00
by magick
Try compositing http://www.imagemagick.org/image/smile.gif onto your softly1.jpg image. We get the correct result (no black background). We need to reproduce a problem before we can fix it.

Re: COMPOSITE/OVER WORKING INCORRECTLY

Posted: 2009-10-04T17:09:20-07:00
by LadyTia
You are compositing a "gif" onto a jpg....the rest of us are compositing a SMALL JPG onto A LARGER JPG....maybe you would be kind enough to test that LadyTia

Re: COMPOSITE/OVER WORKING INCORRECTLY

Posted: 2009-10-04T17:34:35-07:00
by scarlet
RE: THE SMILEY FACE COMPOSITED ONTO THE ROSE

I KEEP LOOKING THROUGH THE THREAD BUT I DON'T BELIEVE YOU POSTED YOUR RESULT?

COULD YOU PLEASE POST THE URL OF WHAT YOU GET WHEN YOU COMPOSITE A SMALLER JPG ONTO A LARGER JPG USING COMPOSITE/OVER?

(I FOUND THE URL FOR THE SMILEY FACE BUT THAT IS ALL)

I WAS ALSO WONDERING IN RE: TO ANSWER FROM MAGICK
COULD YOU EXPLAIN , WHEN YOU WERE SAYING TO TRY USING COMPOSITE/SRCOVER THAT
"COMPOSITING IS AN ART"???

I HAVE BEEN USING COMPOSITE/OVER SINCE 2001 WHILE IMAGING IN IMAGE MAGICK.

SCARLET

Re: COMPOSITE/OVER WORKING INCORRECTLY

Posted: 2009-10-04T17:45:15-07:00
by LadyTia
SCARLET...I DID TEST THEIR SMILEY FACE "GIF" COMP/OVER AND YES IT DID WORK JUST FINE...LIKE THEY SAID...BUT I AM COMPOSITING A SMALL JPG ONTO A LARDER JPG AND AGAIN FOR THE 3RD TIME IN A ROW IN THE PAST HOUR I GOT A SMALL JPG ON A LARGER "BLACK" MATT. LadyTia

Re: COMPOSITE/OVER WORKING INCORRECTLY

Posted: 2009-10-04T17:53:24-07:00
by scarlet
TIA,,,,

I WAS ASSUMING THAT THEIR SMILEY FACE WAS SMALLER IN SIZE THAN THE ROSE THAT THEY WERE COMPOSITING ONTO. ALTHOUGH NO DIMENSIONS WERE GIVEN AND NO URL FOR THE ROSE OR END RESULT,,,EVEN EYEBALLING THE SMILEY FACE AND , ASSUMING THE ROSE IS THE ONE USED FOR THE GENERAL STUDIO EXAMPLE,
THEN YES THE SMILEY FACE IS SMALLER THAN THE ROSE.

IF THEY WERE GETTING THE SAME RESULTS AS US, THEN AFTER USING
"COMPOSITE/OVER",,,
COMPOSITING THE SMILEY FACE ONTO THE ROSE,
THE SMILEY FACE WOULD SHOW BUT THE ROSE AND/OR THE MATTE LAPPING OVER THE PERIMETER OF THE SMILEY FACE,
WOULD BE TOTALLY BLACK IN NATURE
AND NO ROSE WOULD SHOW WHATSOEVER.

MAGICK, ARE YOU RECREATING ON WEBTV?

SO FAR I HAVE TALKED TO 7 PEOPLE WHO ARE EXPERIENCING THIS.

SCARLET

Re: COMPOSITE/OVER WORKING INCORRECTLY

Posted: 2009-10-04T18:48:26-07:00
by LadyTia
OK...I WANTED TO GET ON THE SAME PAGE AS YOU....SO I TOOK "YOUR" SMILEY"GIF" TO IM...BROUGHT THE ROSE THERE. I COMPOSITED THE FACE "OVER" THE ROSE...GREAT ...WORKED JUST AS IT SHOULD...NOW I OUTPUT "THAT" IMAGE (THE FACE ON THE ROSE) SAVED THE URL...WENT BACK TO THE BEGINNING...INPUT THE ROSE...I THEN ENLARDED THE ROSE IMAGE TO 500X?? I THEN WENT TO COMPOSITE AND ENTERED MY SAVED URL OF THE FACE ON THE ROSE...I USED COMPOSE "OVER" AND THEN I PUT A BLUE FRAME AROUND IT ALL SO YOU COULD SEEEEEEEEEE.
THIS IS MY RESULT...AND I WISH YOU WOULD TRY THE SAME THING AND POST YOURS...THANK YOU LadyTia
http://wakantia.250free.com/AinProgress/rose.jpg

Re: COMPOSITE/OVER WORKING INCORRECTLY

Posted: 2009-10-04T21:18:44-07:00
by LadyTia
CAN YOU SEE FROM THE ABOVE RESULT...THAT YOUR TEST WITH THE "GIF" IS ALL FINE AND DANDY...BUT WHEN YOU OUT PUT THAT SMILEYON THE ROSE AS A "JPG" AND COMPOSITE ON THE ENLARGED ROSE "JPG" THAT THE LARGER ROSE BACKGROUND TURNS TO BLACK ! THE ABOVE TEST SHOULD HAVE RESULTED IN A SMILEY "GIF" IN THE CENTER OF THE ROSE...ON TOP OF A LARGER VERSION OF THE ROSE WITH A BLUE FRAME AROUND IT... I ALSO HAVE BEEN DOING THIS AT IM FOR MANY YEARS AND THIS IS NOT RIGHT THE WAY THE RESULTS ARE COMING OUT NOW...AND YES COMPOSITE IS AN "ART" AND TRUST ME I KNOW OF THIS SCARLET AND HER WORK...YOU WANT TO SEE ART AT IT FINEST...YOU SHOULD CHECK IT OUT..NEED NOT TELL HER ABOUT "COMPOSITE" AND ART !!! PEACE LadyTia