View previous topic :: View next topic |
Author |
Message |
muhsinzubeir l33t
Joined: 29 Sep 2007 Posts: 948 Location: /home/muhsin
|
Posted: Mon Jun 06, 2011 8:37 pm Post subject: The struggle to change image sequence-imagemagic/bash-solved |
|
|
Well, my goal will be pretty basic for someone who is fluent in bash.I want get a pdf out of directory with several images like so:
Code: | #convert *.jpg foo.pdf |
The problem which is personal, I am not fluent in bash.Not so sure, but this commands seems to follow :
Code: | #ls
pg_10.jpg
pg_11.jpg
pg_12.jpg
pg_13.jpg
pg_14.jpg
pg_15.jpg
pg_16.jpg
pg_17.jpg
pg_18.jpg
pg_19.jpg
pg_1.jpg
pg_20.jpg
pg_21.jpg
pg_22.jpg
pg_23.jpg
pg_24.jpg
pg_25.jpg
pg_26.jpg
pg_2.jpg
pg_3.jpg
pg_4.jpg
pg_5.jpg
pg_6.jpg
pg_7.jpg
pg_8.jpg
pg_9.jpg |
Thats my problem page one is sand-witched in the middle of the pdf
P:S
**So far I have tried touch hopping for miracle which never came
Code: | for f in *.jpg; do touch $f; printf $f"\n";done; |
Anyone with good bash/imagemagic skills to help ?
Thanks in advance
Cheers _________________ ~x86
p5k-se
Intel Core 2 Duo
Nvidia GT200
http://www.zanbytes.com
Last edited by muhsinzubeir on Tue Jun 07, 2011 7:17 pm; edited 1 time in total |
|
Back to top |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10589 Location: Somewhere over Atlanta, Georgia
|
Posted: Mon Jun 06, 2011 8:44 pm Post subject: |
|
|
Code: | convert pg_{1..26}.jpg foo.pdf |
- John _________________ I can confirm that I have received between 0 and 499 National Security Letters. |
|
Back to top |
|
|
muhsinzubeir l33t
Joined: 29 Sep 2007 Posts: 948 Location: /home/muhsin
|
Posted: Tue Jun 07, 2011 7:16 pm Post subject: |
|
|
John R. Graham wrote: | Code: | convert pg_{1..26}.jpg foo.pdf |
- John |
Thanks _________________ ~x86
p5k-se
Intel Core 2 Duo
Nvidia GT200
http://www.zanbytes.com |
|
Back to top |
|
|
|