Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Image compression

Image compression

Scheduled Pinned Locked Moved C#
algorithmsquestion
6 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    ALAQUNAIBI
    wrote on last edited by
    #1

    Hi All, I want to compress Image to maximum rate, what the best Algorithm can I use? If any one have a class to do that, please give me it ? Ala Qunaibi :)

    L 1 Reply Last reply
    0
    • A ALAQUNAIBI

      Hi All, I want to compress Image to maximum rate, what the best Algorithm can I use? If any one have a class to do that, please give me it ? Ala Qunaibi :)

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Depends on the content of the image and the type of compression you like to have: - lossy or lossless - picture has few distinct colors (like a comic) or is a photograph For photos, you should choose jpeg or some wavelet based algorithms like jpeg2000. Both offer lossy and lossless compressions, although the lossy ones work pretty well for photographs, but look a bit ugly with high compression ratios (you will get lots of artifacts). For pictures with only a few colors, you can choose the palette based GIF (up to 255 colors) or PNG for images with more colors. PNG offers lossless compression. regards

      A G 2 Replies Last reply
      0
      • L Lost User

        Depends on the content of the image and the type of compression you like to have: - lossy or lossless - picture has few distinct colors (like a comic) or is a photograph For photos, you should choose jpeg or some wavelet based algorithms like jpeg2000. Both offer lossy and lossless compressions, although the lossy ones work pretty well for photographs, but look a bit ugly with high compression ratios (you will get lots of artifacts). For pictures with only a few colors, you can choose the palette based GIF (up to 255 colors) or PNG for images with more colors. PNG offers lossless compression. regards

        A Offline
        A Offline
        ALAQUNAIBI
        wrote on last edited by
        #3

        Thanks, My Images are Photos and Compression type is lossless. Can You help me , where can I find source code about What you said, or Examples? Ala Qunaibi :)

        1 Reply Last reply
        0
        • L Lost User

          Depends on the content of the image and the type of compression you like to have: - lossy or lossless - picture has few distinct colors (like a comic) or is a photograph For photos, you should choose jpeg or some wavelet based algorithms like jpeg2000. Both offer lossy and lossless compressions, although the lossy ones work pretty well for photographs, but look a bit ugly with high compression ratios (you will get lots of artifacts). For pictures with only a few colors, you can choose the palette based GIF (up to 255 colors) or PNG for images with more colors. PNG offers lossless compression. regards

          G Offline
          G Offline
          Guffa
          wrote on last edited by
          #4

          Greeeg wrote:

          For photos, you should choose jpeg or some wavelet based algorithms like jpeg2000. Both offer lossy and lossless compressions

          No, there is no lossless JPEG compression.

          Despite everything, the person most likely to be fooling you next is yourself.

          M 1 Reply Last reply
          0
          • G Guffa

            Greeeg wrote:

            For photos, you should choose jpeg or some wavelet based algorithms like jpeg2000. Both offer lossy and lossless compressions

            No, there is no lossless JPEG compression.

            Despite everything, the person most likely to be fooling you next is yourself.

            M Offline
            M Offline
            Matty22
            wrote on last edited by
            #5

            JPEG 1991 supports lossless compression, see http://www.cis.temple.edu/~vasilis/Courses/CIS750/Papers/doc_jpeg_c_5.pdf[^] But it's rarely implemented Jpeg2000 supports lossless compression and is more recommended and more commonly implemented. The vast majority of jpeg2000 libraries I've used support it.

            G 1 Reply Last reply
            0
            • M Matty22

              JPEG 1991 supports lossless compression, see http://www.cis.temple.edu/~vasilis/Courses/CIS750/Papers/doc_jpeg_c_5.pdf[^] But it's rarely implemented Jpeg2000 supports lossless compression and is more recommended and more commonly implemented. The vast majority of jpeg2000 libraries I've used support it.

              G Offline
              G Offline
              Guffa
              wrote on last edited by
              #6

              Matty22 wrote:

              JPEG 1991 supports lossless compression

              No, it doesn't. That's an addition made in 1993, and it's not supported by the standard libraries. wikipedia: Lossless JPEG[^]

              Despite everything, the person most likely to be fooling you next is yourself.

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups