0

I have 10 images that range from 800x8500 to 800x11500 with one of them being header/footer images that are 1100x875 that are intended to be stacked vertically, end to end (its a web comic meant to be read from top to bottom) but every time I try to convert the images using either image magick or img2pdf there are very large dead spaces (approx. 1000px) in between the images.

Is there any way that I can remove this dead space or convert the sequence of images without all of the extra space in between?

img2pdf --output name.pdf --fit exact 800x12000 --pillow-limit-break $(\ls -v *.jpg)

img2pdf --output name.pdf -f shrink --viewer-fullscreen --pillow-limit-break $(\ls -v *.jpg)

convert $(\ls -v *.jpg) -quality 100 out.pdf

convert -define pdf:use-cropbox=true $(\ls -v *.jpg) -quality 100 out.pdf

convert -density 300 -background white $(\ls -v *.jpg) -quality 100 out.pdf

convert $(\ls -v *.jpg) -gravity center -append out.png && imgpdf out.png -o out.pdf

(corrupted the file even with --pillow-limit-break)

I'm using the terminal + bash to do this so far but I'm open to alternative solutions.

sweet
  • 15
  • 1
  • 5
  • You may be more likely to get a response if you gave 10 lines of code that create representative images with names in your expected collating order. Also, reduced size example of what you get and what you want. – Mark Setchell Jan 25 '23 at 08:13

0 Answers0