]> BookStack Code Mirror - bookstack/commit
Images: Updated GIF handling to use native methods
authorDan Brown <redacted>
Sun, 9 Jun 2024 15:58:23 +0000 (16:58 +0100)
committerDan Brown <redacted>
Sun, 9 Jun 2024 16:00:58 +0000 (17:00 +0100)
commit3406846c82bd2322687dae5b7d38045746219edd
tree650433bee5b43c14f566f72d72f8380ca3328a68
parentbddc6ae66bb8094c2c16df64d55663901d5eebd6
Images: Updated GIF handling to use native methods

Changes GIF image thumbnail handling to direcly load via gd instead of
going through interventions own handling (which supports frames) since
we don't need animation for our thumbnails, and since performance issues
could arise with GIFs that have large frame counts.

For #5029
app/Uploads/ImageResizer.php
tests/Uploads/ImageTest.php
tests/test-data/animated.gif [new file with mode: 0644]