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
Draw the ☣ (Biohazard Symbol)
Why do we buy the Mazur Swindle in knot theory?
Word for something that used to be popular but not anymore
How do German speakers decide what should be on the left side of the verb?
Infinitely many primes
Statistical closeness implies computational indistinguishability
Project Euler Problem 45
GFCI No Equipment Ground not testing
Entering the US with dual citizenship but US passport is long expired?
How to accelerate progress in mathematical research
Get a MPS file using NEOS/GAMS web interface
How to make a pipe-divided tuple?
At what point does a land become controlled?
Did "Dirty Harry" feel lucky?
How do draw effects during the discard phase work?
Gapping comma in a list
How strong is aircraft-grade spruce?
Do you need to burn fuel between gravity assists?
Constant integers and constant evaluation
Why did Boris Johnson call for new elections?
Why did Tony's Arc Reactor do this?
Should I tip on the Amtrak train?
What is the purpose of the rotating plate in front of the lock?
After a few interviews, What should I do after told to wait?
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 8 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 7 hours ago
answered 7 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