Jump to content

Images


xenon2050

Recommended Posts

Is it possible to scale a image dynamically? I have a image that i want to be the "background" and to have text and buttons in the form of images on top of that, but in specific places. Is it possible to have the image scale to whatever size the browser is? Say down to 1024x768?

Link to comment
Share on other sites

no it doesn't you are right, but what you do is on first load you set up a session that has the captured info from javascript and then you allow GD to resize all images and you have your info till the session dies using the GD will not bloat/skew your images because you can resample them properly

Link to comment
Share on other sites

Okay.. Thanks for the quick replies. Would doing something like that be smart? I want the site to look good, but not be too incompatible or difficult to view. Also would that be really server intensive? I don't think that is too much of a problem now but something I want to consider. Thanks

Link to comment
Share on other sites

Okay thank you for the great ideas... I'm off to research now.... If you know of any sites offhand that have tutorials for what you have said I would greatly appreciate it if you could link them. I don't want to waste your time though so only if you know of any offhand.

Link to comment
Share on other sites

yes, but best idea is to combine php with javascript and if its a first load set some stuff ajax it off then refresh the given page so it initializes the script its a challenge with sessions because you can't set sessions in the same ajax query (if it makes any sense) you could do it wiht mysql/ips but that is too challenging just do a page reload

Link to comment
Share on other sites

  • 3 weeks later...

Okay I want to open this up again for a similar question, because after researching a bit I don't think I asked the right question.

 

Here is a link to a picture representation of what i am looking for.

http://www.hanle-productions.com/images/firstpage.png

 

As you can see it is a photography website. In my experience most photographers use flash to great extent. But I would rather not use it at all. What I want to do is have the same background as in the picture but have the picture in the middle be changeable and the links below it be picture based so I can control the font. I've been having a hard time figuring out how I should align the objects. I've never tried putting a picture on a picture. How can I arrange it so all the elements are where they are supposed to be? And how is the best way to set the picture as the background? Should I do what I asked before and have it scaling according to browser size? I've been trying to use CSS to arrange things but I am thinking that I'll need to use other code to get it to work correctly.

I know this site will be graphic intensive but the intent is for it to be a good looking site.

 

Can anyone give me ideas on how to do this or better ways to do this?

Link to comment
Share on other sites

You are asking a lot of questions!

I think what your after is an awful lot of html and css tips- it might be a good idea to google for those, and also have a loook at sites you want to imitate and see how they code them.

 

There are lots of different ways or stacking multiple images up- using a combination of background images and img tags is probably a good plan, but short of designing your site there's not a lot of advice I can think of.

 

(wrt above, GD is an option, albeit an incredibly slow and memory intensive one)

Link to comment
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.