Is “raster” is a specific format or a general term (regarding CUPS printing library)












2















I have seen related to the CUPS library, these two files:




  • OpenPrinting/cups-filters/blob/master/filter/imagetoraster.c

  • OpenPrinting/cups-filters/blob/master/cupsfilters/raster.c


I'm not sure what the raster.c does exactly yet, but imagetoraster.c essentially takes a PNG/JPEG/etc. and "converts it to raster format" it sounds like. I don't quite understand what this means exactly. Some printers are "PostScript printers", others are "Raster printers", but I am not sure if this term "raster" means that there is some sort of "Printer Raster Format" like PNG or JPG, or if it's just an array of pixels of some sort, or something else. It seems that the printers would have some sort of standard format, but calling it "raster" seems a bit misleading since raster is basically an arbitrary pixel representation of something (from my understanding).



Hoping one could clarify what exactly is meant by raster in this CUPS filter / printing library. I keep thinking it's actually a IANA mime-type of some sort, but I'm not sure.










share|improve this question















migrated from unix.stackexchange.com Jan 23 at 15:06


This question came from our site for users of Linux, FreeBSD and other Un*x-like operating systems.



















  • Raster normally means that the image exists on a raster grid of pixels, i.e. that it is bitmapped and each pixel is addressable by an x,y coordinate. That is in contrast to Postscript and vector images where a line or rectangle would be described by its endpoints or vertices.

    – Mark Setchell
    Jan 23 at 16:51
















2















I have seen related to the CUPS library, these two files:




  • OpenPrinting/cups-filters/blob/master/filter/imagetoraster.c

  • OpenPrinting/cups-filters/blob/master/cupsfilters/raster.c


I'm not sure what the raster.c does exactly yet, but imagetoraster.c essentially takes a PNG/JPEG/etc. and "converts it to raster format" it sounds like. I don't quite understand what this means exactly. Some printers are "PostScript printers", others are "Raster printers", but I am not sure if this term "raster" means that there is some sort of "Printer Raster Format" like PNG or JPG, or if it's just an array of pixels of some sort, or something else. It seems that the printers would have some sort of standard format, but calling it "raster" seems a bit misleading since raster is basically an arbitrary pixel representation of something (from my understanding).



Hoping one could clarify what exactly is meant by raster in this CUPS filter / printing library. I keep thinking it's actually a IANA mime-type of some sort, but I'm not sure.










share|improve this question















migrated from unix.stackexchange.com Jan 23 at 15:06


This question came from our site for users of Linux, FreeBSD and other Un*x-like operating systems.



















  • Raster normally means that the image exists on a raster grid of pixels, i.e. that it is bitmapped and each pixel is addressable by an x,y coordinate. That is in contrast to Postscript and vector images where a line or rectangle would be described by its endpoints or vertices.

    – Mark Setchell
    Jan 23 at 16:51














2












2








2


1






I have seen related to the CUPS library, these two files:




  • OpenPrinting/cups-filters/blob/master/filter/imagetoraster.c

  • OpenPrinting/cups-filters/blob/master/cupsfilters/raster.c


I'm not sure what the raster.c does exactly yet, but imagetoraster.c essentially takes a PNG/JPEG/etc. and "converts it to raster format" it sounds like. I don't quite understand what this means exactly. Some printers are "PostScript printers", others are "Raster printers", but I am not sure if this term "raster" means that there is some sort of "Printer Raster Format" like PNG or JPG, or if it's just an array of pixels of some sort, or something else. It seems that the printers would have some sort of standard format, but calling it "raster" seems a bit misleading since raster is basically an arbitrary pixel representation of something (from my understanding).



Hoping one could clarify what exactly is meant by raster in this CUPS filter / printing library. I keep thinking it's actually a IANA mime-type of some sort, but I'm not sure.










share|improve this question
















I have seen related to the CUPS library, these two files:




  • OpenPrinting/cups-filters/blob/master/filter/imagetoraster.c

  • OpenPrinting/cups-filters/blob/master/cupsfilters/raster.c


I'm not sure what the raster.c does exactly yet, but imagetoraster.c essentially takes a PNG/JPEG/etc. and "converts it to raster format" it sounds like. I don't quite understand what this means exactly. Some printers are "PostScript printers", others are "Raster printers", but I am not sure if this term "raster" means that there is some sort of "Printer Raster Format" like PNG or JPG, or if it's just an array of pixels of some sort, or something else. It seems that the printers would have some sort of standard format, but calling it "raster" seems a bit misleading since raster is basically an arbitrary pixel representation of something (from my understanding).



Hoping one could clarify what exactly is meant by raster in this CUPS filter / printing library. I keep thinking it's actually a IANA mime-type of some sort, but I'm not sure.







graphics cups image printing






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 24 at 8:25









Andy

2,07622662




2,07622662










asked Jan 22 at 13:04









Lance PollardLance Pollard

31.3k68204341




31.3k68204341




migrated from unix.stackexchange.com Jan 23 at 15:06


This question came from our site for users of Linux, FreeBSD and other Un*x-like operating systems.









migrated from unix.stackexchange.com Jan 23 at 15:06


This question came from our site for users of Linux, FreeBSD and other Un*x-like operating systems.















  • Raster normally means that the image exists on a raster grid of pixels, i.e. that it is bitmapped and each pixel is addressable by an x,y coordinate. That is in contrast to Postscript and vector images where a line or rectangle would be described by its endpoints or vertices.

    – Mark Setchell
    Jan 23 at 16:51



















  • Raster normally means that the image exists on a raster grid of pixels, i.e. that it is bitmapped and each pixel is addressable by an x,y coordinate. That is in contrast to Postscript and vector images where a line or rectangle would be described by its endpoints or vertices.

    – Mark Setchell
    Jan 23 at 16:51

















Raster normally means that the image exists on a raster grid of pixels, i.e. that it is bitmapped and each pixel is addressable by an x,y coordinate. That is in contrast to Postscript and vector images where a line or rectangle would be described by its endpoints or vertices.

– Mark Setchell
Jan 23 at 16:51





Raster normally means that the image exists on a raster grid of pixels, i.e. that it is bitmapped and each pixel is addressable by an x,y coordinate. That is in contrast to Postscript and vector images where a line or rectangle would be described by its endpoints or vertices.

– Mark Setchell
Jan 23 at 16:51












1 Answer
1






active

oldest

votes


















0














A raster is a grid of pixels of a particular format. For example the raster could have a RGB24 format. This would mean that one pixel in this grid, has an R, G and B component, of 8 bits each, representing 256 shades of each component.



The thing to note is that a raster is just pixel data.



Image formats, such as TIFF have a full specification about how the raster should be represented within the TIFF file, along side the header, metadata and tags that TIFF allows/requires.






share|improve this answer























    Your Answer






    StackExchange.ifUsing("editor", function () {
    StackExchange.using("externalEditor", function () {
    StackExchange.using("snippets", function () {
    StackExchange.snippets.init();
    });
    });
    }, "code-snippets");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "1"
    };
    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%2fstackoverflow.com%2fquestions%2f54330180%2fis-raster-is-a-specific-format-or-a-general-term-regarding-cups-printing-libr%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














    A raster is a grid of pixels of a particular format. For example the raster could have a RGB24 format. This would mean that one pixel in this grid, has an R, G and B component, of 8 bits each, representing 256 shades of each component.



    The thing to note is that a raster is just pixel data.



    Image formats, such as TIFF have a full specification about how the raster should be represented within the TIFF file, along side the header, metadata and tags that TIFF allows/requires.






    share|improve this answer




























      0














      A raster is a grid of pixels of a particular format. For example the raster could have a RGB24 format. This would mean that one pixel in this grid, has an R, G and B component, of 8 bits each, representing 256 shades of each component.



      The thing to note is that a raster is just pixel data.



      Image formats, such as TIFF have a full specification about how the raster should be represented within the TIFF file, along side the header, metadata and tags that TIFF allows/requires.






      share|improve this answer


























        0












        0








        0







        A raster is a grid of pixels of a particular format. For example the raster could have a RGB24 format. This would mean that one pixel in this grid, has an R, G and B component, of 8 bits each, representing 256 shades of each component.



        The thing to note is that a raster is just pixel data.



        Image formats, such as TIFF have a full specification about how the raster should be represented within the TIFF file, along side the header, metadata and tags that TIFF allows/requires.






        share|improve this answer













        A raster is a grid of pixels of a particular format. For example the raster could have a RGB24 format. This would mean that one pixel in this grid, has an R, G and B component, of 8 bits each, representing 256 shades of each component.



        The thing to note is that a raster is just pixel data.



        Image formats, such as TIFF have a full specification about how the raster should be represented within the TIFF file, along side the header, metadata and tags that TIFF allows/requires.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jan 24 at 8:24









        AndyAndy

        2,07622662




        2,07622662






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Stack Overflow!


            • 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%2fstackoverflow.com%2fquestions%2f54330180%2fis-raster-is-a-specific-format-or-a-general-term-regarding-cups-printing-libr%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

            How to reconfigure Docker Trusted Registry 2.x.x to use CEPH FS mount instead of NFS and other traditional...

            is 'sed' thread safe

            How to make a Squid Proxy server?