Page MenuHomePhabricator

PdfHandler should use -sharpen for creating JPG thumbnail previews
Open, Needs TriagePublic

Description

PdfHandler currently performs the ImageMagick call on its own using a very simple command line. As a result, for thumbnails of documents like this one, the output is blurrier than ideal for textual pdfs.

A nice start would be taking what T8193 does (code here) and adding a -sharpen when JPEG is requested.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptAug 25 2020, 10:18 PM
Arthur2e5 updated the task description. (Show Details)Aug 25 2020, 10:19 PM
Arthur2e5 updated the task description. (Show Details)
Arthur2e5 updated the task description. (Show Details)Aug 25 2020, 10:32 PM
Reedy updated the task description. (Show Details)Aug 25 2020, 10:59 PM
Seb35 added a subscriber: Seb35.Sep 7 2020, 3:30 PM

There is already a task about using PNG as output of PdfHandler T38597, so is this one specifically about -sharpen?

@Arthur2e5: Could you please answer the last comment? Thanks in advance!

Arthur2e5 added a comment.EditedSat, Nov 14, 2:49 AM

Yes, make this task about -sharpen on JPEG then. Editing.

Arthur2e5 updated the task description. (Show Details)Sat, Nov 14, 2:50 AM
Aklapper renamed this task from PdfHandler can use some sharpening on the preview to PdfHandler should use -sharpen for creating JPG thumbnail previews.Sat, Nov 14, 8:09 AM