- Open the JPG file with GIMP.
Image>Echelle et taille de l'image>Hauteur : 1920>Mise à l'échelle- (optional)
Couleurs>Désaturation>Couleurs vers gris>Valider - Use the rectangular selection tool to manually replace image borders with a white background.
Couleurs>Seuil>Auto> manually adjust the threshold >Valider
The resizing step is optional.
It helps to significantly decrease the processing time for the Désaturation step.
- Open the folder which contains the image file with Windows File Explorer.
- Select the adress bar, type
cmd, and pressEnter. - Run one of the ImageMagick commands below.
Either:
magick -density 80 -page a4 jpg.jpg pdf.pdfor, to further decrease the file size of the PDF:
magick jpg.jpg -resize 50% -density 80 -page a4 pdf.pdfReference: https://stackoverflow.com/a/62446349/376454
- Open the PDF file with Microsoft Edge.
Imprimer (Ctrl+P)>Couleur : Noir et blanc>Echelle (%) : Ajuster à la zone d'impression>Imprimer
This step is optional. It ensures that you won't have bad surprises when printing the document, due to
- a discrepancy between
FitandActual size, - a lack of options on the printer.
magick -density 300 -colorspace sRGB pdf.pdf -alpha off png-%04d.pngIn case of a black background where there should be a white background, try:
magick -density 300 -background white -colorspace sRGB pdf.pdf -alpha remove png-%04d.pngReferences: