How does search 'photo files' work?
Posted: 23 Feb 2017 17:00
How does the 'photo files' distinguish photo images from non-photo images?
Forum for XYplorer Users and Developers
https://www.xyplorer.com/xyfc/
*.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
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;