Re: Generate Website(HTML) thumbnails on the fly
- From: Lew <lew@xxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 27 Mar 2007 09:30:01 -0400
aussie wrote:
Our team needs to have a on the fly website thumbnail. I have found
few scripts for php and .net but nothing for java. Preferably I would
like to set up a servlet that can take url as a parameter and return a
thumbnail image of that website. The only lead I have found on the web
was to use JEditorPane(URL) and then invoking the paint method to a
BufferedImage. Any Java GURUs out there who have an idea or an example
on how to do this?
If you are writing servlets then Swing is not relevant.
Write a servlet to read the image and pump a thumnail through response.out, then put an <img> tag in your JSP with that servlet and the target image as its URL:
<img src="Display?image=foo.jpg" />
GIYF - that's how I found the idiom.
-- Lew
.
- Follow-Ups:
- Re: Generate Website(HTML) thumbnails on the fly
- From: aussie
- Re: Generate Website(HTML) thumbnails on the fly
- References:
- Generate Website(HTML) thumbnails on the fly
- From: aussie
- Generate Website(HTML) thumbnails on the fly
- Prev by Date: Re: Generics Problem
- Next by Date: Re: Generics Problem
- Previous by thread: Generate Website(HTML) thumbnails on the fly
- Next by thread: Re: Generate Website(HTML) thumbnails on the fly
- Index(es):
Relevant Pages
|
|