Re: Once and for all! Fastest way to load large jpeg



On 10 Dec 2006 09:44:17 -0800, jimbo@xxxxxxxxxx wrote:

<snip>
Caching would make quite a difference if you are continuously showing
the same images - it might be a bit memory heavy.

Can Delphi do this?

Any language can - we are just manipulating bytes.

IME the really expensive thing about disk access is locating and
opening the File - if one can find a way of just having one open file,
partioned with a way of getting at individual 'records' then you
should get a massive jump in performance ( well I've always found so
in the past - but hardware is steadily improving ).

What does a TImageList do? I'm Delphi naive (6 months) but I got the
impression from the documentation that it does something like what
you've described but I'm scared to death of it. :(

It is a waste of time, it just stores a few identically sized bitmaps
- it is a childish control

I once wrote something like that, it stored 10,000 pages of HTML with
Images in just one file - even running from CD it was pretty snappy.

My program is a kiosk for viewing and ordering digital images and is
reading external drives so the program is always working from cd or usb
that's why the premium on loading large images. Cameras are producing
larger photos. Media can hold hundreds of photos. I have to display a
reasonable sized image for inspection so when the thumb is clicked I
load from the media.

Right, so the photos are all different, that rules out caching.

You could do a bit of profiling, say pre-loading images into an array
of Strings and getting at them via a TStringStream.

Sorry you've lost me there. Can I preload a whole bunch of images that
way? Do you have a piece of code? Does it achieve the same thing as
cacheing? Thanks for staying with me. Sorry about all the questions.
I've searched for delphi + cache but everything was .net or internet
related.

I can think of some devious ways of making things run faster.

A few questions :-

How do you know the names of the JPEGs that you want to display ?
Where exactly are those JPEGs coming from
How long do you want to keep the JPEGs

If you are doing a security camera control system then explain what
you want.
.



Relevant Pages

  • Re: Photo Gallery
    ... I basically just looped through my images and dropped each one into a new ... > images and display thumbnails. ... > As far as huge photos are concerned, I can check the size at upload time ...
    (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)
  • Re: Form wont accept any more pictures
    ... If it's a personnel system and you need to store photos of ... -- which in fact uses the Jet database engine, ... images in the database. ... have to code the actual display. ...
    (microsoft.public.access.forms)
  • Re: PictureBox and images
    ... I want to include these images inside the exe so the user does not ... you'd add all the JPEGs to a resource ... since BMPs are extremely larger than JPEGs, ...
    (microsoft.public.vb.general.discussion)