homebrewery
homebrewery copied to clipboard
[FEATURE]: Save Brew to Image
The Region Capture feature of Chrome (Desktop v104 and up) allows a MediaStream to be cropped to a target element. It should be possible to use this to capture the browser's rendered output to either the clipboard (blob) or to a file (PNG).
This article has details about the feature.
This paragraph mentions a potential future Element-level Capture API, which seems like it would be exactly what is needed for this functionality.
Genuine doubt, what would be the difference between this and exporting a pdf and transforming that into a jpeg or png?
And between those two and Window's Snipping tool?
Answering myself from the future: absolutely no difference.
what would be the difference between this and exporting a pdf and transforming that into a jpeg or png?
User convenience: ideally a one click process resulting in a high resolution image of the full content.
And between those two and Window's Snipping tool?
Snipping Tool can result in lower resolution images, and while it is less complex than generating a PDF and converting that to an image, it is still a more complex process than direct image generation.
I have a working draft for this issue not based on the chrome region grabbing but it has a few issues likely relating to CORS that I have not yet worked out, thus DRAFT. https://github.com/naturalcrit/homebrewery/pull/3219
@dbolack-ab i believe this issue refers to making the ENTIRE BREW to an image, not just 1 page.
@dbolack-ab i believe this issue refers to making the ENTIRE BREW to an image, not just 1 page.
you would still do it page by page (capturing the page element).
@dbolack-ab i believe this issue refers to making the ENTIRE BREW to an image, not just 1 page.
you would still do it page by page (capturing the page element).
Why would you do that? To make a CBR?