- 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:
convert -density 80 -page a4 jpg.jpg pdf.pdf
or, to further decrease the file size of the PDF:
convert -resize 50% -density 80 -page a4 jpg.jpg pdf.pdf
Reference: 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
Fit
andActual size
, - a lack of options on the printer.
convert -density 300 -colorspace sRGB pdf.pdf -alpha off png-%04d.png
In case of a black background where there should be a white background, try:
convert -density 300 -background white -colorspace sRGB pdf.pdf -alpha remove png-%04d.png
References: