[size=5][b]Skull Gallery 1.1.0[/b][/size]
for SMF 2.1.x, by [url=https://boredskull.net]BoredSkull[/url]

Skull Gallery adds photo, video and audio albums to your forum. Members can share a weekend’s photos in a personal album, follow other photographers and embed gallery media in a topic. Staff can organise site albums and bring pictures across from existing topics or an older gallery.

[b]New in 1.1.0[/b]
Under Admin > Configuration > Skull Gallery > Import, select a board, optionally narrow it to one topic, and choose a destination album. Preview the number of eligible image attachments before copying them. The originals stay in their posts. Gallery copies keep the post subject, author and posting date and follow the destination album’s privacy settings. Running the import again skips attachments already copied.

[b]Albums[/b]
[list]
[li]Site albums run by staff, personal albums for members, and club albums (with the Clubs mod)[/li]
[li]Albums inside albums, as deep as you allow, with covers, a default sort order and a position order[/li]
[li]Privacy for each album: everyone, members only, the owner's buddies, only the owner, chosen membergroups, or a password[/li]
[li]Per-album options: comments on or off, uploads need approval, who can upload, auto-post new uploads from public albums to a board[/li]
[/list]

[b]Uploading[/b]
[list]
[li]Drag and drop (or paste) dozens of files at once, three at a time in parallel with progress bars[/li]
[li]Retry failed uploads without resending successful files; add image alt text before uploading[/li]
[li]Title, description and tags for each file before it goes up, plus tags and a "sensitive" flag for the whole batch[/li]
[li]Images, video (MP4, WebM, MOV and more) and audio (MP3, OGG, M4A, WAV, FLAC), plus YouTube and Vimeo links[/li]
[li]Video posters and sizes are taken in the browser, so no ffmpeg is needed on the server[/li]
[li]Copy approved image attachments from one board or topic into a chosen album under Admin > Configuration > Skull Gallery > Import. Preview the count and check the destination audience before starting. Copies retain the post subject, author and posting date. Re-running skips attachments already copied.[/li]
[li]Import a folder from the server (for big FTP batches), and an importer for SMF Gallery Lite / Pro. Imported albums start private so staff can review their audience before sharing[/li]
[/list]

[b]Processing[/b]
[list]
[li]Thumbnail and display sizes in WebP or AVIF (or JPEG), rebuilt on demand from the untouched original[/li]
[li]Text or PNG watermarks with position, tiling, size and opacity, on the display size only; originals stay clean and can be limited to a "download originals" permission[/li]
[li]EXIF camera details, date taken, and automatic removal of GPS location from JPEG originals[/li]
[li]Duplicate detection: exact copies, and resized or re-saved copies on MySQL/MariaDB[/li]
[li]Rotate, set as cover, move, batch-edit[/li]
[/list]

[b]Viewing[/b]
[list]
[li]Justified rows, even squares or masonry columns, with "load more"[/li]
[li]A built-in lightbox and slideshow for any size of album (keyboard, swipe, full screen)[/li]
[li]Media pages with previous/next, a filmstrip, camera details, tags, sharing BBCode and a link[/li]
[li]Unviewed media tracked per member, "mark all as seen", and NEW badges[/li]
[li]Sensitive items blurred until clicked[/li]
[/list]

[b]Community[/b]
[list]
[li]Comments with BBCode, @mentions, editing, approval and reporting[/li]
[li]5-star ratings, likes (SMF's own like system), favourites and personal collections across albums[/li]
[li]Tag members in photos by drawing a box; they get an alert and can remove the tag[/li]
[li]Follow albums and members, with alerts when they add media[/li]
[li]Featured media, a statistics page, a tag cloud, member galleries and a Gallery tab in profiles[/li]
[li]BBCode for posts: [nobbc][media]ID[/media][/nobbc], [nobbc][media=medium]ID[/media][/nobbc] and [nobbc][album]ID[/album][/nobbc], with an editor button[/li]
[li]RSS feeds and Open Graph link previews for public albums, and a read-only JSON API[/li]
[/list]

[b]BoredSkull ecosystem[/b]
All optional, detected automatically and switchable in Admin > Configuration > Skull Gallery > Integrations.
[list]
[li][b]Clubs:[/b] club albums that follow the club's privacy; members (or only leaders) upload and leaders moderate[/li]
[li][b]Activity Stream:[/b] uploads appear in timelines as "Gallery uploads", grouped per album[/li]
[li][b]Trust Levels:[/b] daily upload limits and approval by trust level[/li]
[li][b]Community Digest:[/b] a "New in the gallery" section[/li]
[li][b]AI Assistant:[/b] suggested titles, descriptions and tags, and screening of comments from new members[/li]
[li][b]Likes and mentions[/b] go through SMF's own systems, so add-ons that build on them apply to the gallery too[/li]
[/list]

[b]Moderation and admin[/b]
Admin > Configuration > Skull Gallery has tabs for settings, files and processing, watermark (with a live preview), limits and quotas (storage per membergroup, uploads per day), the approval queue, reports, integrations, maintenance (recount, rebuild thumbnails, fingerprints, stray files) and import.
Permissions are in the Skull Gallery group: view, upload, create albums, comment, rate, manage own, auto-approve, download originals, tag members and moderate. On install, guests can view; guests also have the download-originals permission by default; regular members get everything except moderate; global moderators get everything.

[b]Storage and security[/b]
Files are stored in a folder (by default [i]mg_files[/i] in your forum folder) protected by Apache or IIS rules. On Nginx, use storage outside the web root or configure a server rule denying direct access. Every file is sent through the gallery with permission checks, browser caching and byte ranges (so videos can be seeked). Optional X-Sendfile / X-Accel-Redirect support and hotlink protection are in the settings. Uploads are checked by content, not just by extension.

[b]Requirements[/b]
SMF 2.1.x, PHP 7.4+ with GD. WebP/AVIF output needs GD built with them; EXIF needs the exif extension. Make sure PHP's upload_max_filesize and post_max_size are at least as big as the largest files you allow.

[b]Uninstalling[/b]
Uninstalling removes the hooks and files. Tick "Remove all data associated with this modification" to also remove the gallery's tables, settings, permissions, alerts and likes. Uploaded files are never deleted automatically; remove the storage folder yourself when you're sure.

[b]Developer hooks[/b]
[list]
[li]integrate_mg_media_added($ids, $album) runs when approved media are published.[/li]
[li]integrate_mg_media_deleted($ids) runs after deletion.[/li]
[li]integrate_mg_comment_added($id, $media, $approved) includes the approval state.[/li]
[li]integrate_mg_can_see_album(&$result, $album) filters album visibility.[/li]
[li]integrate_mg_action($sa, &$handled) lets extensions handle an additional gallery action.[/li]
[/list]

[b]Upgrading[/b]
Package Manager can upgrade Skull Gallery 1.0.0 directly. The Skull Gallery 1.1.0 beta already identifies itself as version 1.1.0 and contains the same gallery code as this release. Existing 1.1.0 beta installations need no action. To replace the earlier Media Gallery test package, uninstall it with the remove-data option unchecked before installing Skull Gallery. Both packages use the same gallery data and public media links.

[b]Licence[/b]
ISC. See license.txt.
