Re: Photo Gallery

From: Steve C. Orr [MVP, MCSD] (Steve_at_Orr.net)
Date: 11/02/04


Date: Tue, 2 Nov 2004 13:14:33 -0800

Well that's a lot of questions.
Here's an alternative to the GetThumbnailImage function so you don't have to
deal with its limitations:
http://www.devx.com/dotnet/Article/22079

As far as displaying the thumbnails in an organized way, I experimented with
repeaters and other such techniques, but ultimately went with a Table
control. The process is a bit more manual but it gave me all the
functionality I could ever want, and it's quite logical and intuitive.
I basically just looped through my images and dropped each one into a new
table cell object.

-- 
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
"bob garbados" <bobgarbados.Quit.Spamming.Me@yahoo.com> wrote in message 
news:10oft6b84tstcca@corp.supernews.com...
> Thanks Steve,
>
> You referred me to this article in response to a post of mine last week 
> and
> it was a big help.  I'm fairly new to .NET and I got stuck trying to 
> resize
> images and display thumbnails.  My page seemed to load fairly slow so I
> wanted to look at saving the files to the web server as well.  I'm 
> assuming
> that performance will be faster if the images live on the web server but
> that it's a better security model to allow the user to update the database
> rather than have access to the web server.
>
> As far as huge photos are concerned, I can check the size at upload time 
> and
> not allow an upload if images are over a certain size.
>
> How can I ensure that I save the right thumbnail?  I found that the
> System.Drawing.Image.GetThumbnailImage method will return a thumbnail
> embedded into the image if one exists.  That thumbnail is usually pretty
> tiny.
>
> Can you lend insight into how I would go about displaying thumbnails? 
> There
> can be 1 image or 20 images and I want to save a thumbnail version of the
> photo at upload time and display all of the thumbnails on one page of the
> website.  Can I do this with a repeater or datagrid or datalist?  I've
> always used a repeater to display data from a database because of it's
> simplicity.
>
>
>
> "Steve C. Orr [MVP, MCSD]" <Steve@Orr.net> wrote in message
> news:Oq3lY8QwEHA.3976@TK2MSFTNGP09.phx.gbl...
>> I created a similar web site.  It's certainly feasible.
>> You need to stay aware of the fact that some photos can be huge, which 
>> can
>> cause bandwidth problems if you're not careful about building in
>> scalability.
>>
>> Here's an article that should be useful to you:
>> http://steve.orr.net/content/asp200307so_f.asp
>>
>> -- 
>> I hope this helps,
>> Steve C. Orr, MCSD, MVP
>> http://Steve.Orr.net
>>
>>
>>
>>
>> "bob garbados" <bobgarbados.Quit.Spamming.Me@yahoo.com> wrote in message
>> news:10ofgd6nvr8c657@corp.supernews.com...
>> > I'm looking for thoughts on photo galleries and security/performance
>> > implications...  I'm working on an asp.net site in vb that will include
> an
>> > updateable photo gallery that will display thumbnails on a page and
>> > clicking
>> > on the thumbnails would pop open another window with the full-sized
> image.
>> > The site needs a form that provides for uploading photos.
>> >
>> > The photo gallery can be limited to a certain number of photos if need
> be.
>> > What are the implications of storing the images in a sql 2000 database
> vs.
>> > the web server?  Does anybody have experience with this type of
>> > functionality?  Thanks.
>> >
>> >
>>
>>
>
> 


Relevant Pages

  • Re: Photo Gallery
    ... images and display thumbnails. ... wanted to look at saving the files to the web server as well. ... Can you lend insight into how I would go about displaying thumbnails? ... > You need to stay aware of the fact that some photos can be huge, ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Photo management with Publisher 2007
    ... If you display an image on a web site it is available for anyone to take and do what ever they please. ... It may not be legal but that is the reality of images on the web. ... Photos illuminate the topic of my website. ... These are not glamorous pictures, nor are they pix of models -- but of every ...
    (microsoft.public.publisher.webdesign)
  • Re: Question about photos and PC output on a Panasonic plasma HDTV
    ... >>> comments on how well it will display photos using the SD card slot, ... >when the picture format is other than 16:9. ... >I use an LCD-TV to display photos from a standard PC ... the displayed images only used about 80% of the plasma screen ...
    (alt.tv.tech.hdtv)
  • Tile TreeView -- embedded images ...
    ... I've found that a Tk_Table was a great way to display thumbnails ... ... but the tile TreeView has a funky tabular mode of display which allows a very convenient tree/table with embedded widgets. ... As far as working with the ttk::treeview manpage, it is very good, as far as it goes, but I'm having difficulty in sizing the rows displayed to accommodate the thumbnails. ... Basically I just need to change the row height to accommodate the images. ...
    (comp.lang.tcl)
  • Re: New free source image processing code
    ... sized PNG files of approximately 1 MB each as THUMBNAILS! ... specifiers should almost never be used in tags. ... you should resize the images and save as JPEG. ... You mean that the rest of the page will display out of place until the ...
    (sci.image.processing)

Loading