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;








1















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










share|improve this question







New contributor



giwedolus is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.



























    1















    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










    share|improve this question







    New contributor



    giwedolus is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.























      1












      1








      1








      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










      share|improve this question







      New contributor



      giwedolus is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      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






      share|improve this question







      New contributor



      giwedolus is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.










      share|improve this question







      New contributor



      giwedolus is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.








      share|improve this question




      share|improve this question






      New contributor



      giwedolus is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.








      asked 8 hours ago









      giwedolusgiwedolus

      82 bronze badges




      82 bronze badges




      New contributor



      giwedolus is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.




      New contributor




      giwedolus is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.

























          2 Answers
          2






          active

          oldest

          votes


















          3
















          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





          share|improve this answer


































            1
















            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





            share|improve this answer





























              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.









              draft saved

              draft discarded
















              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









              3
















              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





              share|improve this answer































                3
















                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





                share|improve this answer





























                  3














                  3










                  3









                  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





                  share|improve this answer















                  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






                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited 8 hours ago

























                  answered 8 hours ago









                  KusalanandaKusalananda

                  163k19 gold badges320 silver badges508 bronze badges




                  163k19 gold badges320 silver badges508 bronze badges


























                      1
















                      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





                      share|improve this answer































                        1
















                        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





                        share|improve this answer





























                          1














                          1










                          1









                          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





                          share|improve this answer















                          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






                          share|improve this answer














                          share|improve this answer



                          share|improve this answer








                          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
























                              giwedolus is a new contributor. Be nice, and check out our Code of Conduct.









                              draft saved

                              draft discarded

















                              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.




                              draft saved


                              draft discarded














                              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





















































                              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







                              Popular posts from this blog

                              ParseJSON using SSJSUsing AMPscript with SSJS ActivitiesHow to resubscribe a user in Marketing cloud using SSJS?Pulling Subscriber Status from Lists using SSJSRetrieving Emails using SSJSProblem in updating DE using SSJSUsing SSJS to send single email in Marketing CloudError adding EmailSendDefinition using SSJS

                              Кампала Садржај Географија Географија Историја Становништво Привреда Партнерски градови Референце Спољашње везе Мени за навигацију0°11′ СГШ; 32°20′ ИГД / 0.18° СГШ; 32.34° ИГД / 0.18; 32.340°11′ СГШ; 32°20′ ИГД / 0.18° СГШ; 32.34° ИГД / 0.18; 32.34МедијиПодациЗванични веб-сајту

                              19. јануар Садржај Догађаји Рођења Смрти Празници и дани сећања Види још Референце Мени за навигацијуу