coderage Posted April 15, 2007 Share Posted April 15, 2007 Hi, I have a large 8000x4000 pixel jpeg image of my town and need to display only a 300x300 pixel part of it on user request (web site) i.e as a selected location in town. Users click on a list of locations (html links) and view the location as a 300x300 pixel image selected form the large one. Any guidance for this will be highly appreciated. Thanks Link to comment https://forums.phpfreaks.com/topic/47089-part-of-large-image/ Share on other sites More sharing options...
AndyB Posted April 15, 2007 Share Posted April 15, 2007 http://ca.php.net/manual/en/function.imagecopy.php - you'll need the image coordinates for the upper-left corner of the part you want to produce. Link to comment https://forums.phpfreaks.com/topic/47089-part-of-large-image/#findComment-229660 Share on other sites More sharing options...
coderage Posted April 15, 2007 Author Share Posted April 15, 2007 Thanks AndyB, ill try it out. Link to comment https://forums.phpfreaks.com/topic/47089-part-of-large-image/#findComment-229665 Share on other sites More sharing options...
ShogunWarrior Posted April 15, 2007 Share Posted April 15, 2007 If you can then think about pre-splitting the files and saving them (to prevent runtime image processing) or at least caching the files. Link to comment https://forums.phpfreaks.com/topic/47089-part-of-large-image/#findComment-229803 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.