Page 1 of 1

How does search 'photo files' work?

Posted: 23 Feb 2017 17:00
by forgottenit
How does the 'photo files' distinguish photo images from non-photo images?

Re: How does search 'photo files' work?

Posted: 23 Feb 2017 17:02
by admin
Just by extension, nothing fancy. E.g., a GIF is not a photo file.

Re: How does search 'photo files' work?

Posted: 23 Feb 2017 17:06
by highend
Welcome to the forum.

By file extension, for "photo":
*.jpg
*.jpeg
*.jpe
*.tif
*.tiff
*.arw
*.cpt
*.cr2
*.crw
*.dcr
*.dng
*.erf
*.fff
*.mrw
*.mef
*.nef
*.nrw
*.orf
*.pef
*.raf
*.raw
*.rw2
*.rwl
*.sr2
*.srf
*.srw
*.x3f
*.tif
*.tiff
*.psb
*.psd

Re: How does search 'photo files' work?

Posted: 23 Feb 2017 17:15
by forgottenit
Ok, that's what I thought.

Re: How does search 'photo files' work?

Posted: 23 Feb 2017 17:30
by forgottenit
Is there a list somewhere of the extensions the program uses to identify file types?

Re: How does search 'photo files' work?

Posted: 23 Feb 2017 17:44
by highend
A complete list could be gathered via scripting:

Code: Select all

    $fileTypes = "{:Archive}|{:Audio}|{:Executable}|{:Font}|{:Image}|{:Media}|{:Office}|{:Photo}|{:Text}|{:Vector}|{:Video}|{:Web}";
    $maxStrLen = 15; // "{:Executable}"

    $content = "";
    foreach($entry, $fileTypes) {
        $entries = recase(formatlist(regexreplace(get("genericfiletype", $entry, ","), "\*\."), "s", ","), "l");
        $content = $content . $entry . strrepeat(" ", $maxStrLen - strlen(quote($entry))) . ": " . $entries . <crlf>;
    }
    text $content;


Re: How does search 'photo files' work?

Posted: 23 Feb 2017 17:53
by TheQwerty
If you focus the types drop down in the Find Files | Name & Location tab and then press F1 a popup listing the included extensions will be shown.

Also, many of these types correspond to the categories under Tools | Configuration | Previewed Formats.