Fixing the White Bar at the Bottom of Chrome Headless Screenshots
The Problem When capturing HTML as PNG images using Chrome’s Headless mode, a white bar appears at the bottom of the output image. google-chrome --headless --screenshot=output.png \ --window-size=1920,1080 \ --hide-scrollbars \ --force-device-scale-factor=1 \ file:///path/to/slide.html Even when the HTML specifies width: 1920px; height: 1080px, the generated image has a white strip at the bottom, and elements positioned with bottom (such as captions, footers, or telops) get clipped. Root Cause --window-size=1920,1080 sets the outer window size, not the actual viewport (rendering area). The viewport ends up slightly smaller, even in Headless mode. ...

![[Omeka S Tips] Notes on Using the BulkImport Module on Windows](https://cdn-ak.f.st-hatena.com/images/fotolife/n/nakamura196/20210807/20210807070636.png)
![[Omeka S Tips] About Auto-Adding New Items to Each Site](https://cdn-ak.f.st-hatena.com/images/fotolife/n/nakamura196/20210806/20210806113219.png)
![[Omeka S Tips] How to Add Existing Standard Vocabularies](https://cdn-ak.f.st-hatena.com/images/fotolife/n/nakamura196/20210725/20210725154253.png)
![[Omeka S Tips] How to Set Language Attributes for Metadata](https://cdn-ak.f.st-hatena.com/images/fotolife/n/nakamura196/20210724/20210724131617.png)