Branding a picture with a logo.gif (with transparency)

Discussions on GFL SDK, the graphic library for reading and writing graphic files

Moderators: helmut, XnTriq, xnview

Post Reply
Mario

Branding a picture with a logo.gif (with transparency)

Post by Mario »

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
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Branding a picture with a logo.gif (with transparency)

Post by xnview »

hi,
Mario wrote:Is it possible to load the picture and the logo.gif and merge them and preserve the transparency of the logo ?
It's not yet possible. I must add a feature like that!
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);
Yes, gflMerge use same Type bitmap.
Regards. Pierre.
lazerfisk
Posts: 17
Joined: Wed May 05, 2004 3:00 pm
Location: Karlstad, Sweden
Contact:

Post by lazerfisk »

That would be sweet, and especially if you could apply alpha on it. For example merge a PNG with alpha channel (for softened edges and other nice effects) with an underlying image while making the overlayed image semi-transparent as well...

I look forward to seing this function in GflAx :)
Guest

Post by Guest »

Hi! is it now included to the latest version??
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Post by xnview »

Anonymous wrote:Hi! is it now included to the latest version??
Yes, you have gflBitbltEx in GFL SDK, and DrawImage in GFLAx
Pierre.
BlackBurn
Posts: 5
Joined: Thu Sep 02, 2004 12:21 pm
Location: Netherlands
Contact:

example?

Post by BlackBurn »

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.
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: example?

Post by xnview »

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.
GFL SDK or GFLAX?
Pierre.
BlackBurn
Posts: 5
Joined: Thu Sep 02, 2004 12:21 pm
Location: Netherlands
Contact:

Re: example?

Post by BlackBurn »

xnview wrote:
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.
GFL SDK or GFLAX?
Pierre.
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.

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 :)
Guest

Post by Guest »

A smooth kick :)

Has someone any idea how to get this working as I describe above, if it is possible.
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: example?

Post by xnview »

BlackBurn wrote:
xnview wrote:
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.
GFL SDK or GFLAX?
Pierre.
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.

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 :)
Please contact me, and i'll send you a new version (with good DrawImage).
Pierre.
Post Reply