DEV Community

yue xing profile picture

yue xing

404 bio not found

Joined Joined on 
Photo or screenshot? Why a JPEG converter picks quality 80 or 88

Photo or screenshot? Why a JPEG converter picks quality 80 or 88

Comments
4 min read
The halo around a blurred-background portrait is not a bad mask, it is the person's own pixels

The halo around a blurred-background portrait is not a bad mask, it is the person's own pixels

Comments
4 min read
A video labelled 60 fps averaged 30.68: timestamps decide when a frame shows

A video labelled 60 fps averaged 30.68: timestamps decide when a frame shows

Comments
4 min read
Extract images from a PDF vs convert pages to images: why a 10-page PDF gave 0 files

Extract images from a PDF vs convert pages to images: why a 10-page PDF gave 0 files

Comments
4 min read
Real-ESRGAN tile seams: the biggest pixel errors were on lines and text, not the sky

Real-ESRGAN tile seams: the biggest pixel errors were on lines and text, not the sky

Comments
4 min read
OCR returned 40 text boxes for a 34-cell table: text boxes are not cells

OCR returned 40 text boxes for a 34-cell table: text boxes are not cells

Comments
3 min read
What a PDF xref table actually is, read through qpdf --show-xref before and after object streams

What a PDF xref table actually is, read through qpdf --show-xref before and after object streams

Comments
4 min read
Does re-saving a JPEG keep making it worse? At quality 75 mine stopped changing at generation 15

Does re-saving a JPEG keep making it worse? At quality 75 mine stopped changing at generation 15

Comments
4 min read
Keyed but still green: keying and despill are two different jobs

Keyed but still green: keying and despill are two different jobs

Comments
3 min read
Limited range video has 220 grey levels, not 256: what one flag does to the same pixels

Limited range video has 220 grey levels, not 256: what one flag does to the same pixels

Comments
4 min read
Canvas width attribute vs CSS width: how much blur a stretch adds at DPR 1, 2 and 3

Canvas width attribute vs CSS width: how much blur a stretch adds at DPR 1, 2 and 3

Comments
4 min read
PNG vs JPEG for PDF pages: the chart page agreed, the text page didn't

PNG vs JPEG for PDF pages: the chart page agreed, the text page didn't

Comments
4 min read
Why a matting model shouldn't see your full-resolution photo: mask median 0.975 to 0.223

Why a matting model shouldn't see your full-resolution photo: mask median 0.975 to 0.223

Comments
4 min read
Blur a sharp photo yourself, then watch PSNR and SSIM disagree about the upscaler

Blur a sharp photo yourself, then watch PSNR and SSIM disagree about the upscaler

Comments
4 min read
The continuation cell a DOCX vertical merge leaves behind still owns a grid column

The continuation cell a DOCX vertical merge leaves behind still owns a grid column

Comments
4 min read
4 WASM threads ran a matting model 2.6–3.0 faster than 1, but only behind COOP and COEP

4 WASM threads ran a matting model 2.6–3.0 faster than 1, but only behind COOP and COEP

Comments
4 min read
Black code text survived CRF 33 in a lecture recording, red text was soft at CRF 18

Black code text survived CRF 33 in a lecture recording, red text was soft at CRF 18

Comments
4 min read
Text height for OCR is the pixel height of a capital H, not the font size or the line

Text height for OCR is the pixel height of a capital H, not the font size or the line

Comments
3 min read
A 2480x3508 scan can be 400 or 600 dpi in a PDF, depending on its size on the page

A 2480x3508 scan can be 400 or 600 dpi in a PDF, depending on its size on the page

Comments
4 min read
Why HEIC to JPG can look washed out: same numbers, wrong color space

Why HEIC to JPG can look washed out: same numbers, wrong color space

Comments
4 min read
Lossless PNG optimizing saved 11.4% on transparent icons and 24.8% on photos

Lossless PNG optimizing saved 11.4% on transparent icons and 24.8% on photos

Comments
4 min read
I tilted a scanned page 1 , 3 and 5 : Tesseract shrugged, a browser OCR scrambled the lines

I tilted a scanned page 1 , 3 and 5 : Tesseract shrugged, a browser OCR scrambled the lines

Comments
4 min read
Compositing gave me a ground-truth alpha, but the truth came from a model

Compositing gave me a ground-truth alpha, but the truth came from a model

Comments
4 min read
A video got bigger after re-encoding? Check bits per pixel before you touch codec settings

A video got bigger after re-encoding? Check bits per pixel before you touch codec settings

Comments
4 min read
Dithering made my GIF up to 50% bigger, and what to check first when a GIF will not shrink

Dithering made my GIF up to 50% bigger, and what to check first when a GIF will not shrink

Comments
3 min read
Reading the DPI back out of a PDF-to-image result: pixels 72 points

Reading the DPI back out of a PDF-to-image result: pixels 72 points

Comments
3 min read
Blurry edge or white halo after resizing a cutout PNG? They are two different problems

Blurry edge or white halo after resizing a cutout PNG? They are two different problems

Comments
4 min read
One oxipng run, two honest numbers: 8.50% or 1.6 points

One oxipng run, two honest numbers: 8.50% or 1.6 points

Comments
3 min read
What the fsType field in a font means, and how to read it with fontTools

What the fsType field in a font means, and how to read it with fontTools

Comments
4 min read
My transparent WebM turned black in the editor, and three checks that found out why

My transparent WebM turned black in the editor, and three checks that found out why

Comments
3 min read
Where do the bytes in an MP4 go? Counting video, audio and container with ffprobe

Where do the bytes in an MP4 go? Counting video, audio and container with ffprobe

Comments
3 min read
A tesseract TSV is a list of word boxes, not a table. Getting rows out of it

A tesseract TSV is a list of word boxes, not a table. Getting rows out of it

Comments
4 min read
A PDF page showed half an image. Every extractor I tried returned the whole thing

A PDF page showed half an image. Every extractor I tried returned the whole thing

Comments
3 min read
Why does a white background read 254 after I save it as JPEG? I counted the pixels

Why does a white background read 254 after I save it as JPEG? I counted the pixels

Comments
4 min read
DevTools said 2 MB of JS heap. The browser was holding 5 GB

DevTools said 2 MB of JS heap. The browser was holding 5 GB

1
Comments
4 min read
Making unchanged pixels transparent made my GIF 25% bigger

Making unchanged pixels transparent made my GIF 25% bigger

Comments
5 min read
Feathering or shrinking the matte didn't fix the halo in my blurred video background

Feathering or shrinking the matte didn't fix the halo in my blurred video background

Comments
4 min read
VideoEncoder.isConfigSupported said yes to H.265, but each browser meant something different

VideoEncoder.isConfigSupported said yes to H.265, but each browser meant something different

Comments
4 min read
I exported a long image at 300 DPI and got the same bytes as 216: WebP's 16383px limit

I exported a long image at 300 DPI and got the same bytes as 216: WebP's 16383px limit

Comments
3 min read
My compressed PDF failed with “Illegal values in ByteRange array”. What the three results meant

My compressed PDF failed with “Illegal values in ByteRange array”. What the three results meant

Comments
3 min read
My screenshots were smaller as PNG-8 than JPEG, and my photos were 3.8x bigger

My screenshots were smaller as PNG-8 than JPEG, and my photos were 3.8x bigger

Comments
4 min read
Only one of four browsers gave me AVIF from canvas.toBlob, and that one gave me PNG for WebP

Only one of four browsers gave me AVIF from canvas.toBlob, and that one gave me PNG for WebP

Comments
4 min read
I awaited document.fonts.ready and my canvas text still came out in the fallback font

I awaited document.fonts.ready and my canvas text still came out in the fallback font

Comments
4 min read
I leaked 1,500 video frames on purpose and Chromium's memory barely moved

I leaked 1,500 video frames on purpose and Chromium's memory barely moved

1
Comments
4 min read
My vertical video played upright, but the thumbnail I grabbed was sideways

My vertical video played upright, but the thumbnail I grabbed was sideways

Comments
4 min read
The part you cropped off a Word image is still in the HTML export

The part you cropped off a Word image is still in the HTML export

Comments
4 min read
Boxes in my Chinese PDF export weren't an encoding bug

Boxes in my Chinese PDF export weren't an encoding bug

Comments
4 min read
Upscaling screenshots before OCR helped tesseract.js, not PP-OCRv6

Upscaling screenshots before OCR helped tesseract.js, not PP-OCRv6

Comments
4 min read
A 256-colour PNG turned my sticker's soft shadow into a black band

A 256-colour PNG turned my sticker's soft shadow into a black band

Comments
4 min read
A PDF that opens without a password can still be encrypted

A PDF that opens without a password can still be encrypted

Comments
4 min read
Nine video captures looked correct because I had asked for the same frame

Nine video captures looked correct because I had asked for the same frame

Comments
3 min read
I stopped treating seeked as proof that a video reached six seconds

I stopped treating seeked as proof that a video reached six seconds

Comments
3 min read
My missing ToUnicode test did not explain every PDF

My missing ToUnicode test did not explain every PDF

Comments
4 min read
Creating a canvas costs nothing. Drawing a 16384 one costs 1 GiB

Creating a canvas costs nothing. Drawing a 16384 one costs 1 GiB

Comments
4 min read
The white rim on my cutout was the old background, not a bad mask

The white rim on my cutout was the old background, not a bad mask

Comments
4 min read
What a progressive JPEG shows with only 10% of its bytes

What a progressive JPEG shows with only 10% of its bytes

Comments
3 min read
Why Firefox's quality-0.9 JPEG is 56% bigger and cleaner on red text

Why Firefox's quality-0.9 JPEG is 56% bigger and cleaner on red text

Comments
5 min read
Browser JPEG quality has only 101 steps: 0.955 and 0.964 give the same file

Browser JPEG quality has only 101 steps: 0.955 and 0.964 give the same file

Comments
3 min read
navigator.gpu exists, but requestAdapter() returns null: if (navigator.gpu) is not a WebGPU check

navigator.gpu exists, but requestAdapter() returns null: if (navigator.gpu) is not a WebGPU check

Comments
3 min read
Why Chrome shows a broken image for an iPhone HEIC upload (and it isn't your MIME type)

Why Chrome shows a broken image for an iPhone HEIC upload (and it isn't your MIME type)

Comments
3 min read
loading...