•  » Extensions
  •  » Automatic Size to ignore certain file types?

#1 2021-06-09 21:26:33

Munich / Germany

Automatic Size to ignore certain file types?


after some time I went back to use the Automatic Size plugin. Seems to work fine except for the case of a gpx file that is shown in my gallery.

E.g. … loss_tirol

The issue seems to be that the "size" stored for a gpx is 256x256 and not the actual size.

The only way I can think about how to fix this is to have some kind of exclude list of file types for Automatic Size. But not sure what common way would be to determine the "file type" in piwigo without parsing the [path] of $element_info and checking the extension?

I would then add an event handler before automatic size to fidle with values so that the plugin doesn't do anything - since I wouldn't want to update the plugin itself.

In case there is any easier way to achieve the same, I'm open for suggestions :-)


P.S.: Yes, I know there is a new version of Piwigo out there ;-) I'm only lacking any kind of test environment to make sure all required plugins are still running afterwards...

    Piwigo 2.10.2 Check for upgrade
    Operating system: Linux
    PHP: 7.4.18 (Show info) [2021-06-09 21:25:24]
    MySQL: 5.5.60-0+deb7u1-log [2021-06-09 21:25:24]
    Graphics Library: External ImageMagick 6.9.10-23


  •  » Extensions
  •  » Automatic Size to ignore certain file types?

Board footer

Powered by FluxBB

github twitter newsletter Donate © 2002-2021 · Contact