# Image URL filenames

Dynamic descriptive image filenames are generated by
`Mini\Libs\Helper::buildImageFilename()`. Instructor, location and category
views, category tiles, footer logos and the image library use this shared helper.
Static names such as `instruktor.jpg` and `kategoria.jpg` already follow the same
filename convention and remain unchanged.

The helper keeps Unicode letters and numbers, converts whitespace, underscores
and punctuation to hyphens, collapses repeated hyphens and trims boundary
hyphens. It percent-encodes the resulting name as one URL segment and appends the
specified extension (`jpg` by default). An empty descriptive name becomes
`image`. For example, `instruktor-jazdy-na-rolkach-Jan Piotr-Klyha (Szczurowski)`
becomes `instruktor-jazdy-na-rolkach-Jan-Piotr-Klyha-Szczurowski.jpg`.

The original display names and the image files in `Files/img/` do not change.
Image selection still depends on the type and record ID, not the descriptive
filename. Existing descriptive names remain accepted by the application when
the web server passes the request through. A redirect correcting an image's
extension also uses the shared helper. The Apache rewrite configuration is
unchanged; old URLs containing spaces can still be rejected by Apache before
PHP is invoked. Newly generated names contain no spaces.

No database migration, configuration change or server-side file operation is
required. No public FAQ change is needed because user operations are unchanged.

Verify multiple first names, surnames containing spaces, repeated whitespace,
Unicode letters and reserved URL punctuation. Check generated image links on
instructor lists/profiles, location lists/profiles and category lists/profiles;
follow representative URLs and verify HTTP 200 with an image content type.
