Jump to content

Recommended Posts

Not sure if php is the best to do this but im trying to do image manipulation on my site so that i can position a image on a background image with pretty good precision. But i don't know want to use absolute position because that screws things up for monitor resolutions etc.

 

 

So image a background image then i want to put another image on that background image so it looks like one actual image, sos a little confusing i know.

 

But can php do this or will it be some other language ? (hopefully server side of course)

Link to comment
https://forums.phpfreaks.com/topic/139470-image-manipulation/
Share on other sites

If you have GD library you can actually make it one image.

 

If you would rather it be CSS, this is not a PHP question, it is an HTML/CSS question. I suggest taking it to that forum.

 

image if you are interested in creating the image as one.

Link to comment
https://forums.phpfreaks.com/topic/139470-image-manipulation/#findComment-729594
Share on other sites

Yeah but the php is suppose to load a image onto the other image in a co-ordinate style so its layered... i wouldn't of thought CSS and HTML is that dynamic enough to communicate with the server to know what co-ordinate is required

 

PHP has no clue/does not care what the page displays as or looks like. You can however pull an image name out of the database and generate the CSS/HTML for it to display how you want it to. But you do not necessarily need PHP to do this. You can create a static html page with 2 known image names and create that effect. Which is the route I would tell you to go for now. Create the actual HTML/CSS first, then take that and plug it into your PHP.

Link to comment
https://forums.phpfreaks.com/topic/139470-image-manipulation/#findComment-729987
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.