How to print image file in windows7 using command line LPR












0















I have image file "test_image.png" and I ran this command on windows7 (64bit)



lpr -S <ipv4 address> -P "GodexG500" "test_image.png"


This command prints the image raw content which is not in base64 format. Let me know how would I do this so that actual image will print using above mentioned "LPR" command.










share|improve this question


















  • 1





    i thot you needed to use -ol [lowercase letter O, lowercase letter L] to print binary files with LPR.

    – Lee_Dailey
    Jan 30 at 8:57











  • @Lee_Dailey: This doesn't work. I have tried this. Job is even not visible into print queue in windows. Let me know if there is any other option to print binary files using command prompt in windows

    – Sunny Chaudhari
    Feb 1 at 6:53











  • to the best of my knowledge, there is not any such thing built into windows. you will need to install an application to do that.

    – Lee_Dailey
    Feb 1 at 7:25











  • which application ?

    – Sunny Chaudhari
    Feb 2 at 4:32











  • a quick net search for command line image print brought up several mentions of irfanview. it seems to have a /print cli option = /print="Name" - print input image to specific printer and close IrfanView. plus, this shows up = windows - command line tool for print picture? - Stack Overflow — stackoverflow.com/questions/2301101/…

    – Lee_Dailey
    Feb 2 at 4:46


















0















I have image file "test_image.png" and I ran this command on windows7 (64bit)



lpr -S <ipv4 address> -P "GodexG500" "test_image.png"


This command prints the image raw content which is not in base64 format. Let me know how would I do this so that actual image will print using above mentioned "LPR" command.










share|improve this question


















  • 1





    i thot you needed to use -ol [lowercase letter O, lowercase letter L] to print binary files with LPR.

    – Lee_Dailey
    Jan 30 at 8:57











  • @Lee_Dailey: This doesn't work. I have tried this. Job is even not visible into print queue in windows. Let me know if there is any other option to print binary files using command prompt in windows

    – Sunny Chaudhari
    Feb 1 at 6:53











  • to the best of my knowledge, there is not any such thing built into windows. you will need to install an application to do that.

    – Lee_Dailey
    Feb 1 at 7:25











  • which application ?

    – Sunny Chaudhari
    Feb 2 at 4:32











  • a quick net search for command line image print brought up several mentions of irfanview. it seems to have a /print cli option = /print="Name" - print input image to specific printer and close IrfanView. plus, this shows up = windows - command line tool for print picture? - Stack Overflow — stackoverflow.com/questions/2301101/…

    – Lee_Dailey
    Feb 2 at 4:46
















0












0








0








I have image file "test_image.png" and I ran this command on windows7 (64bit)



lpr -S <ipv4 address> -P "GodexG500" "test_image.png"


This command prints the image raw content which is not in base64 format. Let me know how would I do this so that actual image will print using above mentioned "LPR" command.










share|improve this question














I have image file "test_image.png" and I ran this command on windows7 (64bit)



lpr -S <ipv4 address> -P "GodexG500" "test_image.png"


This command prints the image raw content which is not in base64 format. Let me know how would I do this so that actual image will print using above mentioned "LPR" command.







windows command-line powershell printing lpr






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jan 30 at 4:31









Sunny ChaudhariSunny Chaudhari

1




1








  • 1





    i thot you needed to use -ol [lowercase letter O, lowercase letter L] to print binary files with LPR.

    – Lee_Dailey
    Jan 30 at 8:57











  • @Lee_Dailey: This doesn't work. I have tried this. Job is even not visible into print queue in windows. Let me know if there is any other option to print binary files using command prompt in windows

    – Sunny Chaudhari
    Feb 1 at 6:53











  • to the best of my knowledge, there is not any such thing built into windows. you will need to install an application to do that.

    – Lee_Dailey
    Feb 1 at 7:25











  • which application ?

    – Sunny Chaudhari
    Feb 2 at 4:32











  • a quick net search for command line image print brought up several mentions of irfanview. it seems to have a /print cli option = /print="Name" - print input image to specific printer and close IrfanView. plus, this shows up = windows - command line tool for print picture? - Stack Overflow — stackoverflow.com/questions/2301101/…

    – Lee_Dailey
    Feb 2 at 4:46
















  • 1





    i thot you needed to use -ol [lowercase letter O, lowercase letter L] to print binary files with LPR.

    – Lee_Dailey
    Jan 30 at 8:57











  • @Lee_Dailey: This doesn't work. I have tried this. Job is even not visible into print queue in windows. Let me know if there is any other option to print binary files using command prompt in windows

    – Sunny Chaudhari
    Feb 1 at 6:53











  • to the best of my knowledge, there is not any such thing built into windows. you will need to install an application to do that.

    – Lee_Dailey
    Feb 1 at 7:25











  • which application ?

    – Sunny Chaudhari
    Feb 2 at 4:32











  • a quick net search for command line image print brought up several mentions of irfanview. it seems to have a /print cli option = /print="Name" - print input image to specific printer and close IrfanView. plus, this shows up = windows - command line tool for print picture? - Stack Overflow — stackoverflow.com/questions/2301101/…

    – Lee_Dailey
    Feb 2 at 4:46










1




1





i thot you needed to use -ol [lowercase letter O, lowercase letter L] to print binary files with LPR.

– Lee_Dailey
Jan 30 at 8:57





i thot you needed to use -ol [lowercase letter O, lowercase letter L] to print binary files with LPR.

– Lee_Dailey
Jan 30 at 8:57













@Lee_Dailey: This doesn't work. I have tried this. Job is even not visible into print queue in windows. Let me know if there is any other option to print binary files using command prompt in windows

– Sunny Chaudhari
Feb 1 at 6:53





@Lee_Dailey: This doesn't work. I have tried this. Job is even not visible into print queue in windows. Let me know if there is any other option to print binary files using command prompt in windows

– Sunny Chaudhari
Feb 1 at 6:53













to the best of my knowledge, there is not any such thing built into windows. you will need to install an application to do that.

– Lee_Dailey
Feb 1 at 7:25





to the best of my knowledge, there is not any such thing built into windows. you will need to install an application to do that.

– Lee_Dailey
Feb 1 at 7:25













which application ?

– Sunny Chaudhari
Feb 2 at 4:32





which application ?

– Sunny Chaudhari
Feb 2 at 4:32













a quick net search for command line image print brought up several mentions of irfanview. it seems to have a /print cli option = /print="Name" - print input image to specific printer and close IrfanView. plus, this shows up = windows - command line tool for print picture? - Stack Overflow — stackoverflow.com/questions/2301101/…

– Lee_Dailey
Feb 2 at 4:46







a quick net search for command line image print brought up several mentions of irfanview. it seems to have a /print cli option = /print="Name" - print input image to specific printer and close IrfanView. plus, this shows up = windows - command line tool for print picture? - Stack Overflow — stackoverflow.com/questions/2301101/…

– Lee_Dailey
Feb 2 at 4:46












1 Answer
1






active

oldest

votes


















0














Finally I found the way, and it works perfectly fine with windows machine
First we need to install inrfan_view application from here irfanview.com and then run this command in windows




& 'C:Program FilesIrfanViewi_view64.exe' .test_image.png /print




(Note: Make sure when you print make print page setup in IrfanView application and choose "Stretch to page" or "Best fit to page" radio button as per your requirement)






share|improve this answer























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "3"
    };
    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: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    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/3.0/"u003ecc by-sa 3.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
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1399939%2fhow-to-print-image-file-in-windows7-using-command-line-lpr%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    Finally I found the way, and it works perfectly fine with windows machine
    First we need to install inrfan_view application from here irfanview.com and then run this command in windows




    & 'C:Program FilesIrfanViewi_view64.exe' .test_image.png /print




    (Note: Make sure when you print make print page setup in IrfanView application and choose "Stretch to page" or "Best fit to page" radio button as per your requirement)






    share|improve this answer




























      0














      Finally I found the way, and it works perfectly fine with windows machine
      First we need to install inrfan_view application from here irfanview.com and then run this command in windows




      & 'C:Program FilesIrfanViewi_view64.exe' .test_image.png /print




      (Note: Make sure when you print make print page setup in IrfanView application and choose "Stretch to page" or "Best fit to page" radio button as per your requirement)






      share|improve this answer


























        0












        0








        0







        Finally I found the way, and it works perfectly fine with windows machine
        First we need to install inrfan_view application from here irfanview.com and then run this command in windows




        & 'C:Program FilesIrfanViewi_view64.exe' .test_image.png /print




        (Note: Make sure when you print make print page setup in IrfanView application and choose "Stretch to page" or "Best fit to page" radio button as per your requirement)






        share|improve this answer













        Finally I found the way, and it works perfectly fine with windows machine
        First we need to install inrfan_view application from here irfanview.com and then run this command in windows




        & 'C:Program FilesIrfanViewi_view64.exe' .test_image.png /print




        (Note: Make sure when you print make print page setup in IrfanView application and choose "Stretch to page" or "Best fit to page" radio button as per your requirement)







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Feb 4 at 3:55









        Sunny ChaudhariSunny Chaudhari

        1




        1






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Super User!


            • 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%2fsuperuser.com%2fquestions%2f1399939%2fhow-to-print-image-file-in-windows7-using-command-line-lpr%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

            Список кардиналов, возведённых папой римским Каликстом III

            Deduzione

            Mysql.sock missing - “Can't connect to local MySQL server through socket”