pipe command output to convert?find arcana: can't get pipe to work in -exec linepdf to jpg without quality loss; gscan2pdfconvert pdf to image [jpeg|png]Using Putty/plink to scp to a named pipeimagemagick globbing multiple extensionsIs there any way to use xargs across a pipe?Ways to convert and combine image files into a pdf file?Pass input file through pipe as argument?Generate and move thumbnails recursivelyConvert PDF to images in 1920x1080
Should I tip on the Amtrak train?
Dissuading my girlfriend from a scam
How to restrain your dragon?
pipe command output to convert?
How do English-speaking kids loudly request something?
Two men on a road
Why are there no wireless switches?
How to apply a register to a command
How many attacks exactly do I get combining Dual Wielder feat with Two-Weapon Fighting style?
Filling attribute tables with values from the same attribute table
How do you say "to hell with everything" in French?
When does order matter in probability?
Owner keeps cutting corners and poaching workers for his other company
Relationship between speed and cadence?
How should Thaumaturgy's "three times as loud as normal" be interpreted?
Why are UK MPs allowed to abstain (but it counts as a no)?
How can electricity be positive when electrons are negative?
Can you pop microwave popcorn on a stove?
Why can't some airports handle heavy aircraft while others do it easily (same runway length)?
Word for something that used to be popular but not anymore
What is the purpose of the rotating plate in front of the lock?
Why are some hotels asking you to book through Booking.com instead of matching the price at the front desk?
Can the Spell Alter Self allow a Kenku to Speak Normally?
I won a car in a poker game. How is that taxed in Canada?
pipe command output to convert?
find arcana: can't get pipe to work in -exec linepdf to jpg without quality loss; gscan2pdfconvert pdf to image [jpeg|png]Using Putty/plink to scp to a named pipeimagemagick globbing multiple extensionsIs there any way to use xargs across a pipe?Ways to convert and combine image files into a pdf file?Pass input file through pipe as argument?Generate and move thumbnails recursivelyConvert PDF to images in 1920x1080
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I have a folder containing files of the format file(0).jpg to file(100).jpg
I can't directly use convert to generate a pdf here because the order ends up being 0,1,100,2,20,21,...
echo *.jpg(n)
gives the correct order of files.
how do I pipe this into convert?
I have tried echo *.jpg(n) | convert - out.pdf
zsh pipe imagemagick
New contributor
add a comment |
I have a folder containing files of the format file(0).jpg to file(100).jpg
I can't directly use convert to generate a pdf here because the order ends up being 0,1,100,2,20,21,...
echo *.jpg(n)
gives the correct order of files.
how do I pipe this into convert?
I have tried echo *.jpg(n) | convert - out.pdf
zsh pipe imagemagick
New contributor
add a comment |
I have a folder containing files of the format file(0).jpg to file(100).jpg
I can't directly use convert to generate a pdf here because the order ends up being 0,1,100,2,20,21,...
echo *.jpg(n)
gives the correct order of files.
how do I pipe this into convert?
I have tried echo *.jpg(n) | convert - out.pdf
zsh pipe imagemagick
New contributor
I have a folder containing files of the format file(0).jpg to file(100).jpg
I can't directly use convert to generate a pdf here because the order ends up being 0,1,100,2,20,21,...
echo *.jpg(n)
gives the correct order of files.
how do I pipe this into convert?
I have tried echo *.jpg(n) | convert - out.pdf
zsh pipe imagemagick
zsh pipe imagemagick
New contributor
New contributor
New contributor
asked 9 hours ago
giwedolusgiwedolus
82 bronze badges
82 bronze badges
New contributor
New contributor
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
If the command that you'd like to execute is
convert 'file(0).jpg' 'file(1).jpg' ...etc... 'file(100).jpg' out.pdf
then either use your glob,
convert *.jpg(n) out.pdf
or a brace expansion
convert 'file('0..100').jpg' out.pdf
add a comment |
If you have many files which will cause you to run into the command line limit of the OS, you should use convert
's @
"filename reference" feature:
generate the list of files ... | convert @- out.pdf
On a shell which doesn't support *.jpg(n)
globs like zsh
does, you can generate the list of files in the right order with:
echo 'file('?').jpg' 'file('??').jpg' 'file('???').jpg' | convert @- out.pdf
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
giwedolus is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f539404%2fpipe-command-output-to-convert%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
If the command that you'd like to execute is
convert 'file(0).jpg' 'file(1).jpg' ...etc... 'file(100).jpg' out.pdf
then either use your glob,
convert *.jpg(n) out.pdf
or a brace expansion
convert 'file('0..100').jpg' out.pdf
add a comment |
If the command that you'd like to execute is
convert 'file(0).jpg' 'file(1).jpg' ...etc... 'file(100).jpg' out.pdf
then either use your glob,
convert *.jpg(n) out.pdf
or a brace expansion
convert 'file('0..100').jpg' out.pdf
add a comment |
If the command that you'd like to execute is
convert 'file(0).jpg' 'file(1).jpg' ...etc... 'file(100).jpg' out.pdf
then either use your glob,
convert *.jpg(n) out.pdf
or a brace expansion
convert 'file('0..100').jpg' out.pdf
If the command that you'd like to execute is
convert 'file(0).jpg' 'file(1).jpg' ...etc... 'file(100).jpg' out.pdf
then either use your glob,
convert *.jpg(n) out.pdf
or a brace expansion
convert 'file('0..100').jpg' out.pdf
edited 8 hours ago
answered 8 hours ago
Kusalananda♦Kusalananda
163k19 gold badges320 silver badges508 bronze badges
163k19 gold badges320 silver badges508 bronze badges
add a comment |
add a comment |
If you have many files which will cause you to run into the command line limit of the OS, you should use convert
's @
"filename reference" feature:
generate the list of files ... | convert @- out.pdf
On a shell which doesn't support *.jpg(n)
globs like zsh
does, you can generate the list of files in the right order with:
echo 'file('?').jpg' 'file('??').jpg' 'file('???').jpg' | convert @- out.pdf
add a comment |
If you have many files which will cause you to run into the command line limit of the OS, you should use convert
's @
"filename reference" feature:
generate the list of files ... | convert @- out.pdf
On a shell which doesn't support *.jpg(n)
globs like zsh
does, you can generate the list of files in the right order with:
echo 'file('?').jpg' 'file('??').jpg' 'file('???').jpg' | convert @- out.pdf
add a comment |
If you have many files which will cause you to run into the command line limit of the OS, you should use convert
's @
"filename reference" feature:
generate the list of files ... | convert @- out.pdf
On a shell which doesn't support *.jpg(n)
globs like zsh
does, you can generate the list of files in the right order with:
echo 'file('?').jpg' 'file('??').jpg' 'file('???').jpg' | convert @- out.pdf
If you have many files which will cause you to run into the command line limit of the OS, you should use convert
's @
"filename reference" feature:
generate the list of files ... | convert @- out.pdf
On a shell which doesn't support *.jpg(n)
globs like zsh
does, you can generate the list of files in the right order with:
echo 'file('?').jpg' 'file('??').jpg' 'file('???').jpg' | convert @- out.pdf
edited 8 hours ago
answered 8 hours ago
mosvymosvy
16.8k2 gold badges23 silver badges54 bronze badges
16.8k2 gold badges23 silver badges54 bronze badges
add a comment |
add a comment |
giwedolus is a new contributor. Be nice, and check out our Code of Conduct.
giwedolus is a new contributor. Be nice, and check out our Code of Conduct.
giwedolus is a new contributor. Be nice, and check out our Code of Conduct.
giwedolus is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f539404%2fpipe-command-output-to-convert%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown