Slightly simplify imgformat retrieval #201

Open
mara0004 wants to merge 2 commits from mara0004/img2pdf:imgformat into main

2 commits

Author SHA1 Message Date
2b563c0982 Update to getattr()
This now a one-liner, compared to 6 lines originally.
And it should be (algorithmically) faster.
2024-08-27 22:26:22 +02:00
132464c0a1 Slightly simplify imgformat retrieval
No need for a loop here - we can access the enum like a dictionary,
which should be more efficient.
2024-08-25 17:43:53 +02:00