Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.gui > #3084

Re: Creating image thumbn

From "Roedy Green" <roedy.green@THRWHITE.remove-dii-this>
Subject Re: Creating image thumbn
Message-ID <96tnp31v11j6qcl3pid2dseb9jh256d8ch@4ax.com> (permalink)
Newsgroups comp.lang.java.gui
References <bill-A6EC28.06533726012008@sn-ip.vsrv-sjc.supernews.net>
Date 2011-04-27 15:42 +0000
Organization TDS.net

Show all headers | View raw


  To: comp.lang.java.gui
On Sat, 26 Jan 2008 06:53:38 -0600, Bill <bill@nospam.com> wrote,
quoted or indirectly quoted someone who said :

>My java application is given a list of image files.  For each image, it 
>creates an image thumbnail and displays this thumbnail in a separate 
>JFrame.  The creation of these thumbnails is very slow compared to the 
>Mac Preview application.  Is there a way to speed this up?

Consider looking for a fast app, possibly not written in Java that has
batch facilities to convert images.  Then use the exec feature to
control it.

See http://mindprod.com/jgloss/exec.html

The hard way to do it is to study up on the format of the files you
are thumbnailing, then see if you can come up with a fast algorithm to
shrink them and write it in assembler and hook to it with JNI. This
might be feasible if the shrinking is always a power of two.  A power
of two algorithm would be faster than a generic one. Each pixel is a
weighted average of a set of surrounding pixels. Use shift for your
divide.

See http://mindprod.com/jgloss/jni.html
-- 
Roedy Green, Canadian Mind Products
The Java Glossary, http://mindprod.com

---
 * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24

Back to comp.lang.java.gui | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Creating image thumbnails "Bill" <bill@THRWHITE.remove-dii-this> - 2011-04-27 15:42 +0000
  Re: Creating image thumbn "RedGrittyBrick" <redgrittybrick@THRWHITE.remove-dii-this> - 2011-04-27 15:42 +0000
  Re: Creating image thumbn "Roedy Green" <roedy.green@THRWHITE.remove-dii-this> - 2011-04-27 15:42 +0000

csiph-web