The Perl Image-Size module.
Created attachment 4693 [details] ImageSize-2.99.ebuild
*** Bug 9556 has been marked as a duplicate of this bug. ***
Unmasked and in portage. Enjoy.