{"id":50,"date":"2020-10-05T14:05:48","date_gmt":"2020-10-05T18:05:48","guid":{"rendered":"https:\/\/pressbooks.bccampus.ca\/h5pkitchen\/?post_type=chapter&#038;p=50"},"modified":"2020-10-06T11:45:37","modified_gmt":"2020-10-06T15:45:37","slug":"image-hotspot-size","status":"publish","type":"chapter","link":"https:\/\/pressbooks.bccampus.ca\/h5pkitchen\/chapter\/image-hotspot-size\/","title":{"raw":"Image Hotspot Size","rendered":"Image Hotspot Size"},"content":{"raw":"From the Kitchen Mattermost Community:\r\n<blockquote>I have a couple of image hotspots and the images in the textbook require scrolling. Is there a way that I can make the picture smaller in H5P so that it can all appear on the screen at once? I know they can click on it to make it pop out, but the rest of the team would like it smaller in the textbook.<\/blockquote>\r\nMy hunch is that the images are scaled to size responsively, so they fill the space available. But just to be sure, I made an Image Hotspot with an image that was 1920x1280 in size and a second version where the image was made smaller, 640x480.\r\n<h2>Big Image:<\/h2>\r\n[h5p id=\"6\"]\r\n<h2>Small Image<\/h2>\r\n[h5p id=\"7\"]\r\n\r\nNo difference! So the images are sized to fill the space available by scaling the width 100%, the height then is just done in proportion. So an image less square or with a higher width to length ratio, will occupy less vertical room on a page, the bottom one will take up less vertical room than the top.\r\n\r\n<img class=\"aligncenter size-large wp-image-54\" src=\"https:\/\/pressbooks.bccampus.ca\/h5pkitchen\/wp-content\/uploads\/sites\/1060\/2020\/10\/hotspot-orientation-1024x768.jpg\" alt=\"\" width=\"1024\" height=\"768\" \/>\r\n\r\nHere is another try where I added some extra white margins to the original image to force it to be much wider than the original.\r\n\r\n[h5p id=\"8\"]\r\n\r\nIt achieves the effect, but might look a bit off kilter. Using the color of the H5P in the \"gutter\" might be more appealing?\r\n\r\n[h5p id=\"9\"]\r\n\r\n&nbsp;","rendered":"<p>From the Kitchen Mattermost Community:<\/p>\n<blockquote><p>I have a couple of image hotspots and the images in the textbook require scrolling. Is there a way that I can make the picture smaller in H5P so that it can all appear on the screen at once? I know they can click on it to make it pop out, but the rest of the team would like it smaller in the textbook.<\/p><\/blockquote>\n<p>My hunch is that the images are scaled to size responsively, so they fill the space available. But just to be sure, I made an Image Hotspot with an image that was 1920&#215;1280 in size and a second version where the image was made smaller, 640&#215;480.<\/p>\n<h2>Big Image:<\/h2>\n<div id=\"h5p-6\">\n<div class=\"h5p-iframe-wrapper\"><iframe id=\"h5p-iframe-6\" class=\"h5p-iframe\" data-content-id=\"6\" style=\"height:1px\" src=\"about:blank\" frameBorder=\"0\" scrolling=\"no\" title=\"Painting It Big\"><\/iframe><\/div>\n<\/div>\n<h2>Small Image<\/h2>\n<div id=\"h5p-7\">\n<div class=\"h5p-iframe-wrapper\"><iframe id=\"h5p-iframe-7\" class=\"h5p-iframe\" data-content-id=\"7\" style=\"height:1px\" src=\"about:blank\" frameBorder=\"0\" scrolling=\"no\" title=\"Painting It Small\"><\/iframe><\/div>\n<\/div>\n<p>No difference! So the images are sized to fill the space available by scaling the width 100%, the height then is just done in proportion. So an image less square or with a higher width to length ratio, will occupy less vertical room on a page, the bottom one will take up less vertical room than the top.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-54\" src=\"https:\/\/pressbooks.bccampus.ca\/h5pkitchen\/wp-content\/uploads\/sites\/1060\/2020\/10\/hotspot-orientation-1024x768.jpg\" alt=\"\" width=\"1024\" height=\"768\" srcset=\"https:\/\/pressbooks.bccampus.ca\/h5pkitchen\/wp-content\/uploads\/sites\/1060\/2020\/10\/hotspot-orientation-1024x768.jpg 1024w, https:\/\/pressbooks.bccampus.ca\/h5pkitchen\/wp-content\/uploads\/sites\/1060\/2020\/10\/hotspot-orientation-300x225.jpg 300w, https:\/\/pressbooks.bccampus.ca\/h5pkitchen\/wp-content\/uploads\/sites\/1060\/2020\/10\/hotspot-orientation-768x576.jpg 768w, https:\/\/pressbooks.bccampus.ca\/h5pkitchen\/wp-content\/uploads\/sites\/1060\/2020\/10\/hotspot-orientation-65x49.jpg 65w, https:\/\/pressbooks.bccampus.ca\/h5pkitchen\/wp-content\/uploads\/sites\/1060\/2020\/10\/hotspot-orientation-225x169.jpg 225w, https:\/\/pressbooks.bccampus.ca\/h5pkitchen\/wp-content\/uploads\/sites\/1060\/2020\/10\/hotspot-orientation-350x263.jpg 350w, https:\/\/pressbooks.bccampus.ca\/h5pkitchen\/wp-content\/uploads\/sites\/1060\/2020\/10\/hotspot-orientation.jpg 1280w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>Here is another try where I added some extra white margins to the original image to force it to be much wider than the original.<\/p>\n<div id=\"h5p-8\">\n<div class=\"h5p-iframe-wrapper\"><iframe id=\"h5p-iframe-8\" class=\"h5p-iframe\" data-content-id=\"8\" style=\"height:1px\" src=\"about:blank\" frameBorder=\"0\" scrolling=\"no\" title=\"Painting It Big With Wide Margins\"><\/iframe><\/div>\n<\/div>\n<p>It achieves the effect, but might look a bit off kilter. Using the color of the H5P in the &#8220;gutter&#8221; might be more appealing?<\/p>\n<div id=\"h5p-9\">\n<div class=\"h5p-iframe-wrapper\"><iframe id=\"h5p-iframe-9\" class=\"h5p-iframe\" data-content-id=\"9\" style=\"height:1px\" src=\"about:blank\" frameBorder=\"0\" scrolling=\"no\" title=\"Painting It Big With Wide Margins and Grey Fill\"><\/iframe><\/div>\n<\/div>\n<p>&nbsp;<\/p>\n","protected":false},"author":1006,"menu_order":2,"template":"","meta":{"pb_show_title":"on","pb_short_title":"","pb_subtitle":"","pb_authors":[],"pb_section_license":""},"chapter-type":[],"contributor":[],"license":[],"class_list":["post-50","chapter","type-chapter","status-publish","hentry"],"part":23,"_links":{"self":[{"href":"https:\/\/pressbooks.bccampus.ca\/h5pkitchen\/wp-json\/pressbooks\/v2\/chapters\/50","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pressbooks.bccampus.ca\/h5pkitchen\/wp-json\/pressbooks\/v2\/chapters"}],"about":[{"href":"https:\/\/pressbooks.bccampus.ca\/h5pkitchen\/wp-json\/wp\/v2\/types\/chapter"}],"author":[{"embeddable":true,"href":"https:\/\/pressbooks.bccampus.ca\/h5pkitchen\/wp-json\/wp\/v2\/users\/1006"}],"version-history":[{"count":4,"href":"https:\/\/pressbooks.bccampus.ca\/h5pkitchen\/wp-json\/pressbooks\/v2\/chapters\/50\/revisions"}],"predecessor-version":[{"id":55,"href":"https:\/\/pressbooks.bccampus.ca\/h5pkitchen\/wp-json\/pressbooks\/v2\/chapters\/50\/revisions\/55"}],"part":[{"href":"https:\/\/pressbooks.bccampus.ca\/h5pkitchen\/wp-json\/pressbooks\/v2\/parts\/23"}],"metadata":[{"href":"https:\/\/pressbooks.bccampus.ca\/h5pkitchen\/wp-json\/pressbooks\/v2\/chapters\/50\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/pressbooks.bccampus.ca\/h5pkitchen\/wp-json\/wp\/v2\/media?parent=50"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/pressbooks.bccampus.ca\/h5pkitchen\/wp-json\/pressbooks\/v2\/chapter-type?post=50"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/pressbooks.bccampus.ca\/h5pkitchen\/wp-json\/wp\/v2\/contributor?post=50"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/pressbooks.bccampus.ca\/h5pkitchen\/wp-json\/wp\/v2\/license?post=50"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}