Last post Sep 01, 2010 05:20 PM by Spiffyguy
Aug 22, 2010 05:51 PM|Spiffyguy|LINK
I am trying to put together an image gallery display. I am guessing it will need to be a customer control but I am not sure. So I figured I would ask on the best way to approach this. When the gallery is loaded I want to have one image displayed with thumbs
underneath. On the right side I would like to display EXIF data and underneath that a small google map if there is geolocation tagged with the picture. I figure I will probably need to store the gallery info in a database with caption and description. Maybe
even searchable tags if I get cheeky later.
So should I be using an ajax gallery to display the images and if so how to pass the EXIF and geolocation to the other controls? Or do i pull in all the info into some sort of dataset and then parse it out to a custom control. I am still fairly new to ASP
but I have a fairly good understanding. Should be an intersting project if nothing else. Any thoughts.
Aug 23, 2010 02:55 PM|vijayst|LINK
Try ListView and HoverMenuExtender
Aug 24, 2010 09:24 AM|Wenchao Zeng - MSFT|LINK
Your question contains many things. I don’t think we can achieve it by just one step. So let’s decompose your question into several parts.
How to read EXIF from JPG images?
Here is an open source library you can use to read these metadata. You can just use it or check the source code to learn more how to achieve it yourself.
# A library to simplify access to image metadata
How to create thumbnails?
Here are two examples. Please refer and reuse them.
# Dynamically resize uploaded images & save in PNG format
# Creating Thumbnail Images on the fly with ASP.Net
How to embed Google Maps in ASP.NET pages?
Here is a tutorial describes how to do it.
# Google Maps in HTML, ASP.NET, PHP, JSP etc. with ease
How to pass the EXIF and geolocation to the other controls?
Within the image click event, you can read this data from the specific JPG file or database. Then set this data to other controls. I don’t think you need to create a custom control, but you can create one for each part according to your favor.
If I misunderstood you, please feel free to let me know.
Hope this helps.
Sep 01, 2010 05:20 PM|Spiffyguy|LINK
I have not gotten to the exif or google maps portion yet. Still struggling with getting a template together for the single image and the listview with thumbs underneath it. I have managed to get the list view to pull thumbs out of my db but I have not
gotten pagination to work on it or an on click event to fire so I can change the single image and pass the value to what will be the exif and google maps panel. I think what I may do i just try to figure out a single image in the middle with prev and next
buttons and the exif and google map panel on the right and forgo showing thumbs all together. I might be easier and I can probably just do it with a gridview showing one column at a time. It is so frustrating that something as simple as displaying clickable
thumbs is so difficult but many other things I have done with VB are so damn easy.