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)
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...


No differences found