I don’t think so.
assets/
├── A.jpg
└── B.jpg
{{ with resources.Get "A.jpg" }}
{{ .RelPermalink }} --> /A.jpg (GOOD)
{{ end }}
{{ with resources.GetMatch "B.jpg" }}
{{ .RelPermalink }} --> /b.jpg (NOT SO GOOD)
{{ end }}
{{ range resources.Match "*.jpg" }}
{{ .RelPermalink }} --> /a.jpg /b.jpg (NOT SO GOOD)
{{ end }}
{{ range resources.ByType "image" }}
{{ .RelPermalink }} --> /a.jpg /b.jpg (NOT SO GOOD)
{{ end }}
Maybe this isn’t a big deal with images, but it certainly isn’t desirable with:
assets/
└── legal/
├── 401K Prospectus.pdf
├── Employment Agreement.pdf
└── Non-disclosure Agreement.pdf
Notice that they are converted to lowercase and anchorized:
├── 401k-prospectus.pdf
├── employment-agreement.pdf
├── non-disclosure-agreement.pdf