• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

microlinkhq / html-get / 45825805158
97%

Build:
DEFAULT BRANCH: master
Ran 26 Nov 2026 01:07PM UTC
Jobs 1
Files 17
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

26 Nov 2026 01:05PM UTC coverage: 96.992% (+0.1%) from 96.895%
45825805158

push

github

web-flow
fix(pdf): convert without inlined images, read og:image page by page (#319)

* fix(pdf): convert without inlined images, read og:image page by page

mutool inlines every image of a PDF as base64. A 151MB scanned PDF of
688 pages became 232MB of HTML, and cheerio held the main thread for
6.7s with a 7GB heap to parse it. The conversion now passes
-O preserve-images=no, which MuPDF 1.28 honors (35MB of HTML, the same
text); 1.19 and 1.23 accept it and ignore it.

Those inlined images were also where a metadata reader found the image
of a PDF whose images the PDF reader skips: it only reads page one and
drops images over 400x400 pixels, with a side under 16px, or used as
stencil masks. When it finds none, mutool draws the PDF one page at a
time, up to the first 20, and the first image it inlines becomes
og:image: the image metascraper picked from the inlined HTML before.
The search stops at the last page, on an error, or when the fetch is
canceled, and only runs on PDF bytes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(pdf): lock image recovery the suite left open

A skipped image on page one, the metadata copied with it, and an empty conversion stayed green when inverted. The author list is written out so that copy has a reader.

* test(pdf): do not emit an authors tag when the reader found none

* fix(fetch): give each fetch its own temporal files and remove them

The default getTemporalFile named the file after the URL, so two fetches
of the same URL at once wrote the same path. The page-by-page image search
reads the PDF again after the conversion, so a fetch could take another
fetch's image as its og:image. The default now picks a random name, and
every file a fetch asked for is removed once it ends, including on a
failed or canceled conversion; before, the default never removed them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(pdf): wait for the cleanup after a cancel instead of a fixed delay

Co-Authored-B... (continued)

718 of 784 branches covered (91.58%)

Branch coverage included in aggregate %.

68 of 69 new or added lines in 3 files covered. (98.55%)

2120 of 2142 relevant lines covered (98.97%)

189.71 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
98.21
-0.0% src/index.js
Jobs
ID Job ID Ran Files Coverage
1 45825805158.1 26 Nov 2026 01:07PM UTC 17
96.99
GitHub Action Run
Source Files on build 45825805158
  • Tree
  • List 17
  • Changed 6
  • Source Changed 2
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #45825805158
  • 03abffa1 on github
  • Prev Build on master (#45143107122)
  • Next Build on master (#45859885928)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc