On 2026-04-19, Olafur Jens Sigurdsson <[email protected]> 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).


-- 
Please keep replies on the mailing list.

Reply via email to