mason/.perl-lib/TrivGal.pm (Image): Use `Image::Size' to find image size.
authorMark Wooding <mdw@distorted.org.uk>
Tue, 20 Jun 2023 20:09:32 +0000 (21:09 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Wed, 21 Jun 2023 09:17:54 +0000 (10:17 +0100)
commit8b97a4e3e8b71d1dda384dccdff35949e64f7dec
treebbc63082f5a135069bfb6be86889d0d0513b8af9
parent4fcd273f0782d7175ed1421452174233d4c5eff8
mason/.perl-lib/TrivGal.pm (Image): Use `Image::Size' to find image size.

Using `Image::Imlib2' means that we don't learn the size without fully
decoding the image and using up lots of memory.  The `Image::Size'
package will determine the image size by reading it out of the file
without decoding, so it's much faster.

Of course, that doesn't matter much yet, because we're only using it
/after/ we decode the image.  Hmm...
mason/.perl-lib/TrivGal.pm