Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 08-17-2012, 08:20 PM   PM User | #1
SpaceDevelop
New Coder

 
Join Date: May 2008
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
SpaceDevelop is an unknown quantity at this point
How to create mosaic with search function

Hello,


I have a client requesting something I've never done; a mosaic. The issue is that the client wants each image to be searchable by name or some type of unique identifier so that their customers can find themselves on the mosaic.

The problem, as you might have guessed, is that a mosaic is typically just one large image of a bunch of smaller images.

I wanted to tell them it was impossible, but alas I found the site below:

http://thisisit-fans.com/

They do this technique somehow in Flash. Any idea how to do the same thing in php?

Thanks for your help!
SpaceDevelop is offline   Reply With Quote
Old 08-17-2012, 09:28 PM   PM User | #2
DrDOS
Senior Coder

 
Join Date: Sep 2010
Posts: 1,155
Thanks: 10
Thanked 148 Times in 148 Posts
DrDOS is infamous around these parts
Do you have any kind of image processing software on the server? If not, about the only thing you can do is some sort of array of the images by sizing them and maybe floating them into a div.

The most common image processing software on servers with php is Imagemagick and the GD library.
DrDOS is offline   Reply With Quote
Old 08-18-2012, 12:38 AM   PM User | #3
Lamped
Super Moderator


 
Join Date: Feb 2009
Location: England
Posts: 539
Thanks: 8
Thanked 63 Times in 54 Posts
Lamped will become famous soon enough
If you notice, the flash on that site reloads part of the image on demand (after you zoom), and that's really your problem. Doing something similar without Flash will either become a huge Javascript and probably Canvas problem, or an interesting series of PHP and Javascript/Ajax problems.

I guess you can provide a resized image, and use Javascript to replace the img tag on demand based on where the user clicked.

Whatever you choose, it's not going to be pretty, and as a professional PHP/Javascript developer of 10 years, it's not something I'd want to undertake.
__________________
lamped.co.uk :: Design, Development & Hosting
marcgray.co.uk :: Technical blog
Lamped is offline   Reply With Quote
Old 08-18-2012, 02:02 PM   PM User | #4
SpaceDevelop
New Coder

 
Join Date: May 2008
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
SpaceDevelop is an unknown quantity at this point
Quote:
Originally Posted by Lamped View Post
If you notice, the flash on that site reloads part of the image on demand (after you zoom), and that's really your problem. Doing something similar without Flash will either become a huge Javascript and probably Canvas problem, or an interesting series of PHP and Javascript/Ajax problems.

I guess you can provide a resized image, and use Javascript to replace the img tag on demand based on where the user clicked.

Whatever you choose, it's not going to be pretty, and as a professional PHP/Javascript developer of 10 years, it's not something I'd want to undertake.
Thanks very much for the input. I am going to turn down the project -- or at the very least recommend avoiding the search function...
SpaceDevelop is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 10:50 AM.


Advertisement
Log in to turn off these ads.