#1 2026-06-17 10:56:47

slim
Member
2016-03-09
33

Plugin "Modern Formats"

Hello/Hi/Greetings,

I used the “Modern Formats” plugin to convert my images from JPEG to WebP. Although the WebP format includes metadata, it is not displayed.

What settings do I need to adjust?

The metadata was displayed under JPEG.

Best regards, Slim

Offline

 

#2 2026-06-17 15:32:31

DanielADK
Extension maintainer
Prague, Czech republic
2026-06-02
8

Re: Plugin "Modern Formats"

Hi Slim,
thanks for flagging this! When the plugin converts a JPEG to WebP, the metadata isn't carried over into the new WebP file. Piwigo normally still shows that info because it keep its own copy in the database – but if you've used Piwigo's "synchronize metadata" tool, after converting, Piwigo re-reads the WebP, finds nothing in it, and clear the info.

For now the workaround is to avodi re-synchronizing metadata on photos you've already converted.

I'm planning an update so the info gets copied into the WebP itself and this can't happen anymore. I've got a lot on my plate right now, but I'll try to get it out by the end of this week :).

Daniel

Offline

 

#3 2026-06-17 17:09:11

slim
Member
2016-03-09
33

Re: Plugin "Modern Formats"

Thanks for the information.

Slim

Offline

 

#4 2026-06-17 22:39:41

DanielADK
Extension maintainer
Prague, Czech republic
2026-06-02
8

Re: Plugin "Modern Formats"

Hi Slim,
the update i promised is out. just update the plugin to the latest version (v1.4.0). You'll find a new "Preserve photo metadata" option (on by default): from now on, when a photo is converted, its EXIF/IPTC/XMP metadata is copied straight into the WebP file (using ExifTool when your server has it, otherwise Imagick), so it's no longer lost during conversion.

Two notes:
- This applies to photos converted from now on. Fot photos you already converted, Piwigo still shows thair metadata from its database as long as you haven't re-synchronized them. If it was already wiped by a re-sync, the original JPEGs are kept in _data/modern_formats_backup/ (if you has backups enabled), so you can restore and reconvert those.
- Embedding needs ExifTool or Imagick on the server; on a GD-only host without ExifTool it still can't be embedded - but most setups have one of them.

Thanks for your patience!

Daniel

Offline

 

#5 2026-06-18 14:15:44

slim
Member
2016-03-09
33

Re: Plugin "Modern Formats"

Hello, unfortunately it doesn’t work like that. The data isn’t being read.

This is what it looks like in JPG format. The data appears on the right.

https://germanfoto.de/piwigotest/screen/exif1.png

After conversion, the field no longer exists.

https://germanfoto.de/piwigotest/screen/exif2.png

The following line was inserted in LocalFilesEditor.

Code:

$conf['show_exif_fields'] = array(
  'Make',
  'Model',
  'ExifVersion',
  'Software',
  'DateTimeOriginal',
  'FNumber',
  'ExposureBiasValue',
  'FILE;FileSize',
  'ExposureTime',
  'Flash',
  'ISOSpeedRatings',
  'FocalLength',
  'FocalLengthIn35mmFilm',
  'WhiteBalance',
  'ExposureMode',
  'MeteringMode',
  'ExposureProgram',
  'LightSource',
  'Contrast',
  'Saturation',
  'Sharpness',
);


$conf['show_iptc_mapping'] = array(
  'iptc_title'           => '2#005',
  'iptc_byline'          => '2#080',
  'iptc_byline_title'    => '2#085',
  'iptc_byline_contact'  => '2#118',
  'iptc_keywords'        => '2#025',
  'iptc_caption'         => '2#120',
  'iptc_caption_writer'  => '2#122',
  'iptc_country_code'    => '2#100',
  'iptc_country'         => '2#101',
  'iptc_city'            => '2#090',
  'iptc_copyright'       => '2#116'
);

$conf['show_exif'] = true;
$conf['show_iptc'] = true;
$conf['use_iptc'] = true;

Slim

Last edited by slim (2026-06-18 15:23:44)

Offline

 

#6 2026-06-20 12:40:51

DanielADK
Extension maintainer
Prague, Czech republic
2026-06-02
8

Re: Plugin "Modern Formats"

Hi Slim,

That's the missing half of the feature — now fixed.

v1.4.0 embeds the metadata into the WebP file, but Piwigo's own reader can't pull EXIF/IPTC back out of a WebP, so the panel stays empty even though the data is in the file. The part that feeds that embedded metadata into the picture-page EXIF and IPTC panels only shipped in v1.4.3 (latest is now v1.4.4).

So just update to v1.4.4 and the panels should come back for converted WebP — your show_exif show_iptc config is already correct.

One precondition: the panel can only show what's actually in the file. That means photos converted with "Preserve photo metadata" enabled (v1.4.0+, needs
ExifTool or Imagick on the server). Anything you converted with an older version has no embedded metadata — for those, restore the original JPEG from _data/modern_formats_backup/ and reconvert with v1.4.4.

Quick check on any file: exiftool image.webp — if the EXIF/IPTC is listed there, v1.4.4 will display it.

Daniel

Offline

 

#7 2026-06-20 18:24:47

slim
Member
2016-03-09
33

Re: Plugin "Modern Formats"

Hello Daniel, you’re an angel.

It is now working correctly. All metadata is now displayed.

Thank you very much for your help

Slim (Norbert)

Offline

 

#8 2026-06-20 20:56:01

slim
Member
2016-03-09
33

Re: Plugin "Modern Formats"

But I’ve still got one left!

The author is missing from the Information Box, and the IPTC data is not displayed either.

Last edited by slim (2026-06-21 16:57:59)

Offline

 

#9 2026-07-06 14:33:04

slim
Member
2016-03-09
33

Re: Plugin "Modern Formats"

So I’ve gone back to having a homepage after all. I find it unsatisfactory.

Offline

 

Board footer

Powered by FluxBB