[KPhotoAlbum] Checking image file readability by MIME type, rather than file name

Risto H. Kurppa risto at kurppa.fi
Fri May 11 01:05:58 CEST 2007

2007/5/11, Robert L Krawitz <rlk at alum.mit.edu>:
> I vote against this patch, on performance grounds.  Example: the Canon
> Digital Rebel produces thumbnail files (.thm, which are JPEGs) for
> each raw image.  As written, every time you scan for new images, it
> will have to check each of these files.  At present, it skips them
> because the .thm suffix isn't known.
> (For that matter, there's another problem with this -- it will read
> the .thm files, see that they're actually JPEGs, and import them.
> That's likely to be undesirable in its own right.)

Happy you. I have Nikon D70 that produces NEF (.nef) and then I run a
script to create corresponding jpegs (.nef.jpg to tell me that there's
a high-quality NEF available). So if it only would be possible to to
have an option to make KPA ignore all .nef files (but not .nef.jpg)
I'd be happy..

File exclusion / filter has been discussed earlier and no actual
decisions have been made. I'm really looking forward to see Tuomas
finish the SQL backend: performance and possibility to manage file
types.. But if there will be some modification on file name / type
recognition I think this needs to be discussed again to find the
perfect solution..

> Think about what happens if there are 50,000 files that need to be
> checked each time someone wants to check for new images.

Only 43 000 :)



| risto h. kurppa
| risto at kurppa dot fi
| http://risto.kurppa.fi
| http://rhkrhk.jaiku.com <-- uusi

More information about the KPhotoAlbum mailing list