This is great, Stuart.. I'm afraid about my first try with Iridium..this is what happens to me by my internet user: wiz$ iridium --headless --disable-gpu --screenshot=/home/wiz/Downloads/out.png --window-size=1920,1080 "https://numode.eu" [20615:7737494982272:0420/142909.339315:ERROR:sandbox/policy/openbsd/sandbox_openbsd.cc:267] failed to get XDG_RUNTIME_DIR [20615:7737494982272:0420/142909.362634:ERROR:content/browser/child_process_security_policy_impl.cc:2640] Invalid isolated origin: [20615:7737494982272:0420/142909.362675:ERROR:content/browser/child_process_security_policy_impl.cc:2640] Invalid isolated origin: [20615:7737497923136:0420/142909.364985:ERROR:dbus/bus.cc:405] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory [17183:750387342976:0420/142909.562177:ERROR:media/gpu/vaapi/vaapi_wrapper.cc:1626] vaInitialize failed: unknown libva error *** autoupdate was enabled, overriding with false [6716:206314708608:0420/142909.720093:ERROR:sandbox/policy/openbsd/sandbox_openbsd.cc:267] failed to get XDG_RUNTIME_DIR [20615:7737026756672:0420/142911.025512:ERROR:net/cert/ev_root_ca_metadata.cc:151] Failed to decode OID: 0 8516 bytes written to file /home/wiz/Downloads/out.png -- dan bsd.numode.eu Stuart Henderson <stu.lists@spacehopper.org> wrote: > On 2026-04-19, Olafur Jens Sigurdsson <ojs@lappid.net> wrote: >> On Sun, Apr 19, 2026 at 06:43:22PM +0200, dan wrote: >>> Hello, >>> >>> I would like to use ImageMagick to convert an html file to image >>> doing: >>> >>> convert index.html index.tiff >>> >>> But I get this error: >>> >>> covert: delegate failed `'html2ps' -U -o '%o' '%i'` @ >>> error/delegate.c/InvokeDelegate/2005 covert: unable to open file >>> '/tmp/magick-fYTDsb123etc': No such file or directory @ >>> error/constitute.c/ReadImage/621 convert: no image defined >>> `index.tiff` @ error/convertcc/ConvertImageCommand/3234. >> >> I do believe this is because the html2ps is abandonware and is >> nowhere to be found in any OpenBSD ports. > > the chromium-based browsers have a headless mode which can render to > an image fairly well, e.g. > > iridium --headless --disable-gpu --screenshot=/tmp/out.png \ > --window-size=3840,2160 "$url" > > (note that "unveil" restrictions apply, you can write to /tmp or > ~/Downloads but not most other dirs). > > (there's also --print-to-pdf). >
No comments:
Post a Comment