Branding a picture with a logo.gif (with transparency)
Moderators: helmut, XnTriq, xnview
Branding a picture with a logo.gif (with transparency)
Hi,
I have a online picture gallery. Now, I want to brand my pictures with my logo at the right bottom. The logo is a circle with some letters inside and the background around this circle is transparent, so I save the logo as logo.gif.
Is it possible to load the picture and the logo.gif and merge them and preserve the transparency of the logo ?
For now I load the gif file and then I have to change the color depth, otherwise the gflMerge returns "invalid paramater:
gflChangeColorDepth( logo, NULL, GFL_MODE_TO_RGB, 0);
I also tried it with GFL_MODE_TO_RGBA to preserve the alpha channel, but the logo is always merged as a rectangle with the circle logo on the picture.
Please help me,
Mario
I have a online picture gallery. Now, I want to brand my pictures with my logo at the right bottom. The logo is a circle with some letters inside and the background around this circle is transparent, so I save the logo as logo.gif.
Is it possible to load the picture and the logo.gif and merge them and preserve the transparency of the logo ?
For now I load the gif file and then I have to change the color depth, otherwise the gflMerge returns "invalid paramater:
gflChangeColorDepth( logo, NULL, GFL_MODE_TO_RGB, 0);
I also tried it with GFL_MODE_TO_RGBA to preserve the alpha channel, but the logo is always merged as a rectangle with the circle logo on the picture.
Please help me,
Mario
Re: Branding a picture with a logo.gif (with transparency)
hi,
Regards. Pierre.
It's not yet possible. I must add a feature like that!Mario wrote:Is it possible to load the picture and the logo.gif and merge them and preserve the transparency of the logo ?
Yes, gflMerge use same Type bitmap.For now I load the gif file and then I have to change the color depth, otherwise the gflMerge returns "invalid paramater:
gflChangeColorDepth( logo, NULL, GFL_MODE_TO_RGB, 0);
Regards. Pierre.
example?
Could someone give me an example how I can do it, cause with merge I can get it working the right way, cause you have to use opacity.
Re: example?
GFL SDK or GFLAX?BlackBurn wrote:Could someone give me an example how I can do it, cause with merge I can get it working the right way, cause you have to use opacity.
Pierre.
Re: example?
With GFLAX, merging works fine, but it should be cool if it is possible to put an logo on a image, where both images have no opacity.xnview wrote:GFL SDK or GFLAX?BlackBurn wrote:Could someone give me an example how I can do it, cause with merge I can get it working the right way, cause you have to use opacity.
Pierre.
for example, you have an image 640*480 and a logo 100*50 and that logo you want to have in the left corner, but both pictures must be visible for 100%.
transpercy support from gif or png, should be real cool, but not neccesary. I can always make an logo in square shape

Re: example?
Please contact me, and i'll send you a new version (with good DrawImage).BlackBurn wrote:With GFLAX, merging works fine, but it should be cool if it is possible to put an logo on a image, where both images have no opacity.xnview wrote:GFL SDK or GFLAX?BlackBurn wrote:Could someone give me an example how I can do it, cause with merge I can get it working the right way, cause you have to use opacity.
Pierre.
for example, you have an image 640*480 and a logo 100*50 and that logo you want to have in the left corner, but both pictures must be visible for 100%.
transpercy support from gif or png, should be real cool, but not neccesary. I can always make an logo in square shape
Pierre.