•  » Requests
  •  » Help: add small AI badges on thumbnails with

#1 2025-10-17 22:27:41

mariorick
Member
2025-10-17
1

Help: add small AI badges on thumbnails with

Hi everyone!

I’m running Piwigo with the Bootstrap Darkroom theme and this plugin: GThumb+ (mosaic thumbnails). I’m trying to add a tiny 21×21 “AI” badge (diamond SVG) on the bottom-left of each thumbnail for photos that were AI-processed (Upscaled / Enhanced / Colorized / Denoised). Ideally:

-Badge overlays the thumb (positioned absolute), with a simple tooltip and i18n text.
-Works with GThumb+ mosaic layout and lazyload.
-Minimal/no theme edits (prefer hooks/prefilters or a small plugin).
-(Nice-to-have) Show a short “AI note” in the picture information panel too.

I experimented with template prefilters and hooks like loc_end_index_thumbnails (to attach per-thumb variables) and loc_begin_picture (for the single photo page), but ran into compatibility quirks with GThumb+ and some “by reference vs return” differences across versions.

Questions:

-Is there an existing plugin or example that overlays small badges on GThumb+ thumbnails?
-What’s the recommended hook/template target for safely injecting per-thumbnail HTML with GThumb+ (without hard editing theme files)?

Pointers to docs, sample code, or a known pattern are super appreciated. Thanks a lot!

Offline

 

#2 2025-10-17 23:07:58

Katryne
Member
Provence, France
2016-12-03
567

Re: Help: add small AI badges on thumbnails with

Maybe you could try with this [extension by PEU] PEU Overlay


https://album.chauvigne.info/ v.15.7.0  PHP: 8.2.29
https://balades.comoni.org/  v.15.7.0 PHP: 8.2.29
Système d'exploitation: Linux - Hébergeur 1&1-Ionos - MySQL: 5.7.42
Bibliothèque graphique: External ImageMagick 6.9.11-60

Offline

 

#3 2025-10-18 12:41:36

mariorick
Member
2025-10-17
1

Re: Help: add small AI badges on thumbnails with

Thanks a ton! It totally worked. I used that plugin as a base and built another one that adds badges to the photos and album thumbnails if they have a specific tag. It worked perfectly. Thanks for your help, it was a huge deal.

Cheers!

Offline

 
  •  » Requests
  •  » Help: add small AI badges on thumbnails with

Board footer

Powered by FluxBB

github linkedin newsletter Piwigo.org © 2002-2026 · Contact