How does search 'photo files' work?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
forgottenit
Posts: 10
Joined: 23 Jan 2016 20:40

How does search 'photo files' work?

Post by forgottenit »

How does the 'photo files' distinguish photo images from non-photo images?

admin
Site Admin
Posts: 60558
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: How does search 'photo files' work?

Post by admin »

Just by extension, nothing fancy. E.g., a GIF is not a photo file.

highend
Posts: 13313
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: How does search 'photo files' work?

Post 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
One of my scripts helped you out? Please donate via Paypal

forgottenit
Posts: 10
Joined: 23 Jan 2016 20:40

Re: How does search 'photo files' work?

Post by forgottenit »

Ok, that's what I thought.

forgottenit
Posts: 10
Joined: 23 Jan 2016 20:40

Re: How does search 'photo files' work?

Post by forgottenit »

Is there a list somewhere of the extensions the program uses to identify file types?

highend
Posts: 13313
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: How does search 'photo files' work?

Post 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;

One of my scripts helped you out? Please donate via Paypal

TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Re: How does search 'photo files' work?

Post 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.

Post Reply