https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42405
--- Comment #3 from Tomás Cohen Arazi (tcohen) <[email protected]> --- Created attachment 200153 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=200153&action=edit Bug 42405: Add Koha::Biblio->add_cover_image and Koha::Item->add_cover_image This patch adds add_cover_image methods to Koha::Biblio and Koha::Item. Each method takes a GD::Image object, creates the scaled versions via Koha::CoverImage, and stores the result linked to the corresponding biblio or item. A MissingParameter exception is thrown if src_image is not provided. Test plan: 1. Apply patch 2. Run: $ ktd --shell k$ prove t/db_dependent/api/v1/cover_images_single.t => SUCCESS: Tests pass! 3. Tests cover: - MissingParameter thrown when src_image is undef (biblio) - MissingParameter thrown when src_image is undef (item) 4. Sign off :-D Sponsored-by: ByWater Solutions -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
