Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
The struggle to change image sequence-imagemagic/bash-solved
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
muhsinzubeir
l33t
l33t


Joined: 29 Sep 2007
Posts: 948
Location: /home/muhsin

PostPosted: Mon Jun 06, 2011 8:37 pm    Post subject: The struggle to change image sequence-imagemagic/bash-solved Reply with quote

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 :D

P:S
**So far I have tried touch hopping for miracle which never came :oops:
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
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10589
Location: Somewhere over Atlanta, Georgia

PostPosted: Mon Jun 06, 2011 8:44 pm    Post subject: Reply with quote

Code:
convert pg_{1..26}.jpg foo.pdf
:wink:

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
muhsinzubeir
l33t
l33t


Joined: 29 Sep 2007
Posts: 948
Location: /home/muhsin

PostPosted: Tue Jun 07, 2011 7:16 pm    Post subject: Reply with quote

John R. Graham wrote:
Code:
convert pg_{1..26}.jpg foo.pdf
:wink:

- John


Thanks
_________________
~x86
p5k-se
Intel Core 2 Duo
Nvidia GT200
http://www.zanbytes.com
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum