Re: Once and for all! Fastest way to load large jpeg
- From: jimbo@xxxxxxxxxx
- Date: 10 Dec 2006 23:27:49 -0800
J French wrote:
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.
How can one cache a folder say on a cd or external device? Example?
<snip>
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.
Sorry. Still confused.
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.
I'm all ears.
A few questions :-
How do you know the names of the JPEGs that you want to display ?
User chooses folder from directorylistbox populating a filelistbox.
I create an object for each entry with path and other relevant info and
add it to an array with a common index to the filelistbox. So I use
whichever is convenient.
Where exactly are those JPEGs coming from
CD USB or any external drive.
How long do you want to keep the JPEGs
In practice only long enough to assign it to the larger TImage. I free
it immediately. See original example.
If you are doing a security camera control system then explain what
you want.
No as I said it's a digital photo kiosk for use in photo retail shops.
Reading large images from cd or usb is borderline acceptable only
because it represents a small percentage of users right now but I
expect the pct to increase and hope to solve this some way. I have an
absolutely magic solution for thumbnail generation and feel I can
market if I can speed up showing of the larger image. I originally was
generating thumbnails at 400x300 with reasonable speed thereby solving
the problem of the larger picture since I already had it on the
harddisk. But when I hit 4MB it became unacceptable. That's how I found
my current thumbnail solution so I'm back to the original problem. At
this stage the only impediment is loading the larger TImage from
external media on clicking the thumb. It needs a bit of a prod. French
dressing? :) RamDisk?
Thanks again for staying with me.
Jim
.
- Follow-Ups:
- Re: Once and for all! Fastest way to load large jpeg
- From: J French
- Re: Once and for all! Fastest way to load large jpeg
- References:
- Once and for all! Fastest way to load large jpeg
- From: jimbo
- Re: Once and for all! Fastest way to load large jpeg
- From: J French
- Re: Once and for all! Fastest way to load large jpeg
- From: jimbo
- Re: Once and for all! Fastest way to load large jpeg
- From: J French
- Re: Once and for all! Fastest way to load large jpeg
- From: jimbo
- Re: Once and for all! Fastest way to load large jpeg
- From: J French
- Once and for all! Fastest way to load large jpeg
- Prev by Date: Re: Feature Warning Request: Possible loss of data
- Next by Date: Re: Once and for all! Fastest way to load large jpeg
- Previous by thread: Re: Once and for all! Fastest way to load large jpeg
- Next by thread: Re: Once and for all! Fastest way to load large jpeg
- Index(es):
Relevant Pages
|