jazzIIIlove
asked on
Php graphics library
Hi there;
I need a library for a PHP project of mine, which I intend to make a badge for an avatar of a user. Could you provide a library for this?
Kind regards.
I need a library for a PHP project of mine, which I intend to make a badge for an avatar of a user. Could you provide a library for this?
Kind regards.
ASKER
What I want to do is that suppose that I have an avatar/pic that I want to put a small pic in the very corner of it, that the users should be able to do it. So is it possible with GD?
Any example codes manipulating a pic would be perfect.
Kind regards.
Any example codes manipulating a pic would be perfect.
Kind regards.
Sure it's entirely possible and many web sites do it all the time to watermark copyrighted images. Please post an example of the images you want to combine and I'll show you exactly how to do it.
ASKER
Sure;
You may need to resize the photos.
But the issue is that I want the user to assign the badge to the avatar.
Looking forward to your message
Kind regards
untitled2.bmp
wallpaper-113696.jpg
You may need to resize the photos.
But the issue is that I want the user to assign the badge to the avatar.
Looking forward to your message
Kind regards
untitled2.bmp
wallpaper-113696.jpg
OK, I have the two photos. One is girls-and-minarets (604x256). One is anime-paper (1600x1200). What do you want to do with these images? Which goes where and how large? It's easy to do but we need to have some fairly clear instructions about how to handle these. An example might be, "Take the anime-paper, make it 160x120 pixels and put it over the upper-left corner of girls-and-minarets."
Also, I do not know if this matters to you, but PHP GD library is very competent with JPG and PNG images, but does not work well with BMP images. I have come to prefer PNG images for everything I do because they do not suffer from "lossy" compression like JPG images. PNG images have some compression, though not as much as JPG images. But the fact that they can be stored and transmitted without losing image quality trumps the compression, in my opinion.
Also, I do not know if this matters to you, but PHP GD library is very competent with JPG and PNG images, but does not work well with BMP images. I have come to prefer PNG images for everything I do because they do not suffer from "lossy" compression like JPG images. PNG images have some compression, though not as much as JPG images. But the fact that they can be stored and transmitted without losing image quality trumps the compression, in my opinion.
ASKER
The girls will be going to the left hand side of the anime. Any size.
Ah, you can convert the image type to whatever you want
I am flexible by all means.
How can we do this in php?
Regards.
Ah, you can convert the image type to whatever you want
I am flexible by all means.
How can we do this in php?
Regards.
ASKER
left bottom.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Classic Ray!
<?php phpinfo();