I'm writing a program to show grid of images as a preview. Since I'm working
with huge size images (JPEGs only) resize takes long time. Resently I found
out there is a way to extract a thumbnail from JPEG file itself so no resize
is needed.
Does anyone know how to do that!?
Thank you,
Daniil
dan...@NYCfoto.com
David
"David J Taylor" <david...@writeme.com> wrote in message
news:3ccf8bab$1_2@dnews...
"Daniil" <dan...@NYCfoto.com> wrote in message news:3ccff70e$1_2@dnews...
Thank you very much!
"David J Taylor" <david...@writeme.com> wrote in message
news:3cd00010$1_1@dnews...
"Daniil" <dan...@NYCfoto.com> wrote in message news:3cd00a18$1_1@dnews...
This thumbnail is part of the EXIF spec, search for EXIF SPEC JEIDA and
download the latest spec there if you want to use it. Problem is sometimes
that this thumbnail is not rotated while the main pic is.
Kind regards,
Nils
www.abc-view.com
David J Taylor <david...@writeme.com> wrote in message
news:3ccf8bab$1_2@dnews...
Thanks for that reminder - you are right. Depends if the user really
wants "The Thumbnail" or just a reduced resolution image to use as a
thumbnail!
Cheers,
David
"Nils" <n.h...@quicknet.nl> wrote in message news:3cd0a77d$1_2@dnews...
"Nils" <n.h...@quicknet.nl> wrote in message news:3cd0a77d$1_2@dnews...
This means that, in essence, by reading every 8th component horizontally
and vertically, one 64th of the data, you can get the entire image as a
thumbnail **without having to do any DCT maths** to recover the 64
individual pixels in that region. Hence the speed!
I hope that helps,
David
"Daniil" <dan...@NYCfoto.com> wrote in message news:3cd182ca$1_1@dnews...
"David J Taylor" <david...@writeme.com> wrote in message
news:3cd1ad9e$1_2@dnews...
Personally I use the free Intel Image Processing library DLLs which are
super-fast and take advantage of the MMX/SSE etc. processor instruction
sets. I wrote a wrapper so that it can be used from a TBitmap-like
object.
Cheers,
David
"Daniil" <dan...@NYCfoto.com> wrote in message news:3cd2aa1e_1@dnews...
its just that i need to write program to resize a lot of pictures for my
gallery. but finding any good and fast resizing library proved to be very
hard. the one i'm using now generates beautiful thumbnails with Photoshop
quality, but its quite slow. thus i'm still on lookout.
"David J Taylor" <david...@writeme.com> wrote in message
news:3cd2cf78_1@dnews...
David
"Daniil" <dan...@NYCfoto.com> wrote in message news:3cd2db46$1_1@dnews...
thank you for explanations and help :)
"David J Taylor" <david...@writeme.com> wrote in message
news:3cd2e42a_2@dnews...
http://developer.intel.com/software/products/perflib/ipl/index.htm
"Daniil" <dan...@NYCfoto.com> wrote in message news:3cd2e52d$1_1@dnews...
thanx
"David J Taylor" <david...@writeme.com> wrote in message
news:3cd2eed0$1_2@dnews...
Just load a JPEG at jsEighth and then use LanczosIII resampling to generate
the thumbnail.
However, make sure that the size of the resulting JPG image is still bigger
in both dimensions as your target thumbnail. If not, then load it at
jsQuarter or jsHalf.
You can find the resampling algorithm in the GraphicEx library of Mike
Lischke (search Google).
You can try ABC-View Manager's "webpage generator" to get an idea of the
speed. I think it is fast enough for most applications. And I don't even use
the half/quarter/eighth loading technique for generating these web
thumbnails.
Hope this helps.
Nils Haeck
Developer of ABC-View Manager (image management solution)
www.abc-view.com
Daniil <dan...@NYCfoto.com> wrote in message news:3cd2db46$1_1@dnews...
> Hi,
>
> I'm writing a program to show grid of images as a preview. Since I'm
> working with huge size images (JPEGs only) resize takes long time.
> Resently I found out there is a way to extract a thumbnail from JPEG
> file itself so no resize is needed.
>
> Does anyone know how to do that!?
The JFIF JPEG file format (the one everyone uses) defines a mechanism
storing a thumbnail image in the JPEG stream. You can look at the JFIF
standard (Search for JFIF) and you can see how this is done.
HOWEVER....thumbnails are rarely stored within JFIF files.
Nils
www.abc-view.com
Flavius Vespasianus <n...@nl.com> wrote in message news:3cd33b14_1@dnews...
Cheers,
David
"Daniil" <dan...@NYCfoto.com> wrote in message news:3cd2ff40$1_1@dnews...
thanks :)
"David J Taylor" <david...@writeme.com> wrote in message
news:3cd5a56a$1_2@dnews...
"Daniil" <dan...@NYCfoto.com> wrote in message news:3cd182ca$1_1@dnews...
"Richard Post" <ric...@quicksoft.tk> wrote in message
news:3ce2ee35_1@dnews...