issue80:tuto_-_de_jpg_vers_pdf
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| issue80:tuto_-_de_jpg_vers_pdf [2014/05/03 18:19] – gsxfred | issue80:tuto_-_de_jpg_vers_pdf [2014/05/07 12:12] (Version actuelle) – auntiee | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| - | Fear not Blender fans – Nicholas will return next month. Well, assuming his employer will actually give him a day off and some free time that is... | + | **Fear not Blender fans – Nicholas will return next month. Well, assuming his employer will actually give him a day off and some free time that is... |
| - | It's a common enough task, trying to convert multiple jpg files into one pdf, particularly when I don't need these to be converted with such high quality, I just want the black and white text readable. | + | It's a common enough task, trying to convert multiple jpg files into one pdf, particularly when I don't need these to be converted with such high quality, I just want the black and white text readable.** |
| - | Ne craignez rien les fans Blender | + | Ne craignez rien chers fans de Blender, Nicolas sera de retour le mois prochain. |
| - | C'est une tâche assez commune d' | + | Essayer |
| - | I can scan, crop, and monochrome in a graphics program, but compiling them into a single PDF booklet was always tricky. Which is how I started using ImageMagick. | + | **I can scan, crop, and monochrome in a graphics program, but compiling them into a single PDF booklet was always tricky. Which is how I started using ImageMagick.** |
| - | Je peux numériser, | + | Je peux numériser, |
| - | ImageMagick is a command-line conversion program that is capable of so many more batch operations than this - resizing, compression, | + | **ImageMagick is a command-line conversion program that is capable of so many more batch operations than this - resizing, compression, |
| - | ImageMagick est un programme de conversion en ligne de commande qui est capable de faire du traitement par lot de redimensionnement, de compression | + | ImageMagick est un programme de conversion, en ligne de commande, qui est capable de faire du traitement par lot pour redimensionner, compresser |
| - | Bear in mind that creating a PDF document from multiple JPEG images can take some time, and you may want to trial different settings for size and quality of output, so I suggest you make a copy of the JPEG files in a temporary folder to play around with and use Imagemagick on those – NOT on your originals. Reducing the resolution as a first step will also make things much quicker. | + | **Bear in mind that creating a PDF document from multiple JPEG images can take some time, and you may want to trial different settings for size and quality of output, so I suggest you make a copy of the JPEG files in a temporary folder to play around with and use Imagemagick on those – NOT on your originals. Reducing the resolution as a first step will also make things much quicker. |
| - | Originally I was just using the basic: | + | Originally I was just using the basic:** |
| - | Gardez à l' | + | Gardez à l' |
| - | Au départ, je voulais faire les choses simplement en utilisant : | + | Au départ, je voulais faire les choses |
| convert *.jpg output.pdf and/or convert *.jpg -adjoin output.pdf | convert *.jpg output.pdf and/or convert *.jpg -adjoin output.pdf | ||
| Ligne 28: | Ligne 28: | ||
| convert *.jpg output.pdf et/ou convert *.jpg -adjoin output.pdf | convert *.jpg output.pdf et/ou convert *.jpg -adjoin output.pdf | ||
| - | which works most of the time. However, there' | + | **which works most of the time. However, there' |
| What this command does is take all the .jpg's (or format of your choice) in a folder, and convert them to a single PDF - you can name it whatever you like. | What this command does is take all the .jpg's (or format of your choice) in a folder, and convert them to a single PDF - you can name it whatever you like. | ||
| You can avoid the segmentation fault bug and do the compression at the same time if you use: | You can avoid the segmentation fault bug and do the compression at the same time if you use: | ||
| - | convert *.JPG -compress Zip output.pdf | + | convert *.JPG -compress Zip output.pdf** |
| - | qui fonctionne la plupart du temps. Cependant, il y a un bug dans la routine de conversion qui peut dans certaines | + | qui fonctionne la plupart du temps. Cependant, il y a un bug dans la routine de conversion qui peut, dans certains |
| - | Cette commande prend toutes | + | Cette commande prend tous les jpg (ou le format de votre choix) dans un dossier, et les convertit |
| - | Vous pouvez éviter le bug d' | + | Vous pouvez éviter le bug d' |
| convert *.JPG -compress Zip output.pdf | convert *.JPG -compress Zip output.pdf | ||
| - | but the zip compression appears quite inefficient and results in huge file sizes. | + | **but the zip compression appears quite inefficient and results in huge file sizes. |
| You could resize and lower the quality of the images using: | You could resize and lower the quality of the images using: | ||
| - | mogrify -resize 50% -quality 25 | + | mogrify -resize 50% -quality 25** |
| - | mais la compression zip apparaît | + | mais la compression zip apparait |
| Vous pouvez redimensionner et réduire la qualité des images à l'aide de : | Vous pouvez redimensionner et réduire la qualité des images à l'aide de : | ||
| Ligne 54: | Ligne 54: | ||
| mogrify -resize 50% -quality 25 | mogrify -resize 50% -quality 25 | ||
| - | Which overwrites the originals. You can combine resizing and conversion using: | + | **Which overwrites the originals. You can combine resizing and conversion using: |
| - | convert -quality 25 -resize 50% *.jpg -adjoin output.pdf | + | convert -quality 25 -resize 50% *.jpg -adjoin output.pdf** |
| qui remplace les originaux. Vous pouvez combiner le redimensionnement et la conversion à l'aide de : | qui remplace les originaux. Vous pouvez combiner le redimensionnement et la conversion à l'aide de : | ||
| convert -quality 25 -resize 50% *.jpg -adjoin output.pdf | convert -quality 25 -resize 50% *.jpg -adjoin output.pdf | ||
| - | which works, but takes longer as you're combining batch operations. | + | **which works, but takes longer as you're combining batch operations. |
| And yes, you can resizing images without overwriting the originals by specifying a new file name: | And yes, you can resizing images without overwriting the originals by specifying a new file name: | ||
| Ligne 69: | Ligne 69: | ||
| qui fonctionne, mais prend plus de temps car vous combinez plusieurs traitements par lots. | qui fonctionne, mais prend plus de temps car vous combinez plusieurs traitements par lots. | ||
| - | Et oui, vous pouvez redimensionner les images sans écraser les originaux en spécifiant un nouveau nom de fichier: | + | Et oui, vous pouvez redimensionner les images sans écraser les originaux en spécifiant un nouveau nom de fichier : |
| convert ' | convert ' | ||
| - | which outputs the converted images as newfile001.jpg, | + | **which outputs the converted images as newfile001.jpg, |
| - | for file in *.JPG ; do convert " | + | for file in *.JPG ; do convert " |
| - | qui émet en sortie | + | cela convertit |
| + | Une autre solution, si vous souhaitez conserver le nom d' | ||
| + | |||
| + | for file in *.JPG ; do convert " | ||
| - | This is just a sample of what Imagemagick can do if you are prepared to experiment at the command-line. | + | **This is just a sample of what Imagemagick can do if you are prepared to experiment at the command-line.** |
| - | Ceci est juste un échantillon de ce que ImageMagick peut faire si vous êtes prêt à expérimenter | + | Ce n'est qu'un échantillon de ce qu'ImageMagick peut faire si vous êtes prêt à expérimenter |
issue80/tuto_-_de_jpg_vers_pdf.1399133974.txt.gz · Dernière modification : 2014/05/03 18:19 de gsxfred
