Yahoo Answers is shutting down on 4 May 2021 (Eastern Time) and the Yahoo Answers website is now in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
Multiple images presented as a single image with html?
I have a webpage that is presenting multiple images stuck together that appear as a single image (currently, in a table with no borders or gaps between the images). The images come from different sites and change somewhat regularly (I don't have any control over them). I would like the viewers of my site to be able to right click on the image and save it as a single image.
Some additional details/caveats... I'm generating the html from php. Some of the images come from sites that require username/passwords and the user will have to already have logged into those sites so that they're able to view the images. I don't want the users to have to provide me with their username&passwords (they probably don't either), so I don't think having php do the stitching is an option.
As an extra bonus, I'd like the default filename to be generated from my php, so if there's a way to set that, that'd be great.
Thanks.
My php doesn't actually access the image. All my php does is generate the html that has links to the images. When the user views my webpage, they get the links from me and their browser goes and accesses the images - directly from their source (with username and password), not me. Right now, all I provide is the html code.
3 Answers
- Anonymous9 years agoFavourite answer
If you don't need to go too far back in browser archaeology, this sounds like just the thing the <canvas> tag might help with.
Source(s): I haven't used it at all, just going by some of my CG buddies' recommendations. - Anonymous9 years ago
You should be able to use an external file to create an image using PHP, and if you're accessing the image right now without requiring their passwords you should be able to use that same url. You're probably going to want to look at the GD library a little more - dynamic images can be an amazing thing, it just takes a little familarity with some relatively simple functions.
Research, specifically, the functions that you're going to need - imagecreatefromgif (or png, jpeg, etc) and imagecopymerge being the main ones. Using this you can call the various parts of the image remotely and then merge it into one file that your users can then download as is. Definition of the filename will I believe only work if you're saving it, and in that case you'd need to provide a way for it to be updated either manually or on a scheduled basis. Otherwise, the name of the image file will be the same as the php file that creates it.
Try using this tutorial, or doing a web search for another tutorial on those functions.
Source(s): http://php.net/manual/en/function.imagecreatefromp... http://php.net/manual/en/function.imagecopymerge.p... years of experience with dynamic images and php - ?Lv 45 years ago
Any planet that has a molten center might have a magnetic container, and consequently might have a magnetic north and south. The magnetic container is generated by technique of a "dynamo result" in planets with molten outer cores. even though it fairly is achieveable for a planet to lose its magnetic container if its center solidifies. Mars is one such occasion - its center cooled eons in the past, and it no longer has a international magnetic container (one reason we can choose protective to proceed to exist Mars, there is not any international container protecting the exterior from cosmic radiation). Venus has a magnetic container, even though it replaced into desperate that it replaced into generated by technique of an interaction between the ionosphere and the photograph voltaic wind, particularly than by technique of an inner dynamo. Venus's magnetosphere is in simple terms too in danger of safeguard the ambience from cosmic radiation. Magnetic fields have one North pole and one South pole - it quite is the physics of magnetism. So a planet will purely have one North magnetic pole. even though it can't be a similar element simply by fact the geographical north pole - its no longer a similar element on earth. The geographical north pole is predicated near to rotation, and the magnetic poles must be everywhere.