imagesize is an optional dependency of the latest version of app-misc/alexandria.
Created attachment 147712 [details] Ebuild
Thanks for the report and the ebuild, I've just added it to CVS. Note that a lot of stuff in gem ebuilds can be left out as we have sensible defaults for it in the gems eclass.