Announcement

Collapse
No announcement yet.

Puzzling file size

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Puzzling file size

    I'm working on my presentation to the computer group and came across some interesting information.

    I want to give them an overview of file size, resolution etc.

    BUT - just when I thought I understood it........

    I have this image, it's saved for web, 48 kb on my machine. I put it on a web site, went to the web site, right-clicked and copied it to the clipboard and then immediately pasted it into PhotoShop Elements. PSE says the image is now 287 kb

    What is happening?? Can anyone explain??

    Thanks, Margaret

  • #2
    Photoshop files are a lot larger than JPG files, not even counting the compression offered by JPG. JPG saves space by more than just compression. It also strips out a lot of other information. Plus, PS seems to always inflate the file size of open files.
    Learn by teaching
    Take responsibility for learning

    Comment


    • #3
      Perhaps the same size gremlins that take a 200K file and "convert" it to 287K when I attach it to a Yahoo email. Then we don't want to even talk about AOL.



      Catia

      Comment


      • #4
        Actually, it's very similar. JPG files save size by storing the command "8 black pixels" instead of storing 8 actual black pixels (as an example, the actual mechanism is much more sophisticated than this). Plus, they apply LZW compression after that (sort of like a ZIP file, but a different algorythm). Uncompressing these files intails uncompressing the LZW, then actually painting in each pixel. At this point it would be similar to a TIF file with no compression, or a BMP file (of which the AOL ART file is a version). Similar, but not interchangeable, since (again) this is a gross oversimplification. Photoshop also adds its own information, plus there's room for other information such as EXIF data, etc.
        Learn by teaching
        Take responsibility for learning

        Comment


        • #5
          Thanks Doug,

          That was very informative. I guess a pixel is not a pixel is not a pixel.

          Or something like that.

          Catia

          Comment


          • #6
            While I'm on a roll I might as well go on and explain why it's not good to save a JPG file as another JPG file. As I mentioned, JPG will look at repeating patterns as a source of compression, but you can control how intently it looks for patterns using the "quality" or "amount" setting. At high compression levels it will see, for example, 8 black pixels, then 1 white pixel, then another 8 pixels and say essentially "screw it, that 1 white pixel isn't that important" and record the data as just 17 black pixels. Then the next time it will record those 17 black pixels as a single command and look around for other black pixels and decide how important the information inbetween them is. This is called "lossy compression", and naturally it does it for every color, not just black. So, just hitting "save" on a JPG file can actually destroy data, as it does this analysis each time the file is saved. Gradually it will toss more and more data.

            On an interesting sidenote (I love throwing tidbits like this in), if you happen to know the precise compression setting the JPG had when it was originally saved, and replicate that exact setting, virtually no data will be lost when re-saving it as a JPG. That's more in the realm of interesting trivia than actual workflow advice, however.
            Learn by teaching
            Take responsibility for learning

            Comment


            • #7
              Doug, this presentation is on October 15 from 1 - 3:30 pm at the Seniors Education Center just down the street. If you can be there to explain file sizes, I'll buy you lunch

              Thank you so much for the information. I never even thought that interpreting the "8 black pixels" line into actual black pixels would make the size different.

              Margaret

              Comment


              • #8
                Hmmm,

                I thought Jpeg was based on 8 pixel by 8 pixel block encoding. Each 8x8 block is cosine transformed ( this is a linear transformation that packs all of the energy into the low spatial frequency terms). Then bits are assigned to the terms with the most energy. So, high spatial frequency stuff gets a small number of bits. To be able to recontruct the image, one needs the "bitmap." The cosine coefficients and the bit map are "packed" into the file. Now, that was the "source" coding part. The fun begins with the "channel" coding. We have to add back in enough redundancy to insure that we can recover the bitmap and the cosine transform coefficients. That is where the variability arises. By the way, the DC term of each transform block (the zero spatial frequency term) is basically the average intensity of that block. Any error in this term produces the dreaded blocking error.

                Hmmmmm. Sorry, I guess I am getting carried away. Information theory was my minor and every once in a while it slips out.

                Catia
                Last edited by catia; 10-03-2003, 09:47 PM.

                Comment


                • #9
                  Like I said, "gross oversimplification"
                  Learn by teaching
                  Take responsibility for learning

                  Comment


                  • #10
                    You are a sweetheart Doug and we all love you. We really do. Keep up the good work.



                    Catia

                    Comment

                    Related Topics

                    Collapse

                    • ylwdog
                      Jpg: Small Size is Increased when Opened
                      by ylwdog
                      I have a Photoshop file that I saved out from a psd format to 194K in a jpg format file.
                      Reading the properties of the file show 194k, when I open it in Photoshop it blows it up to 34.5mb.
                      A) Curious what is going on
                      B) Is it possible to have Photoshop open the jpg file as the...
                      09-11-2009, 05:17 AM
                    • rlualhati
                      File Management/Different Image Sizes
                      by rlualhati
                      Hello All,

                      I was wondering how everyone else handles file management and different image crops/sizes.

                      Do you have a separate files for each crop/size?

                      I currently have one file for 5x7 and 8x10 crops....but now I need to go to 11x14 and beyond. I worked...
                      01-29-2012, 08:48 AM
                    • LunaLuna
                      TIF file size?
                      by LunaLuna
                      Hi everyone,

                      I client sent me a tif file for a few fixes. I worked on it with Photoshop and saved again as tif.

                      The original tif file is 67 MB and the one I saved after fixing is only 19Mb.
                      I don't understand why that much difference…

                      Characteristics...
                      09-18-2014, 09:23 AM
                    • phili1
                      Downloading pictures
                      by phili1
                      I am haveing alot of trouble downloading pictures.

                      Example I downloaded a challange Guitar charlie which had a pixel width of 547 and height of 711 from this sight.

                      I redid it and tried to send back the same size and it told me its to large.

                      So I reduce...
                      12-16-2002, 06:34 AM
                    • jeaniesa
                      Resizing images for RetouchPRO
                      by jeaniesa
                      Many people seem to have questions on how to resize images under the 100KB(*) limit needed to upload images to RetouchPRO. I wrote this a few days ago and since more questions are popping up, I thought I’d post it for everyone.

                      (*)Actually, the 100KB limit applies to the forums only....
                      11-19-2002, 09:11 PM
                    Working...
                    X
                    😀
                    🥰
                    🤢
                    😎
                    😡
                    👍
                    👎