Koha::CoverImage - Koha CoverImage Object class
my $cover_image = Koha::CoverImage->new( { biblionumber => $biblionumber, itemnumber => $itemnumber, src_image => $image, mimetype => $mimetype, } );
biblionumber and/or itemnumber must be passed, otherwise the image will not be linked to anything.
src_image must contain the GD image, the fullsize and thumbnail images will be generated and stored in the database.