Results 1 to 6 of 6

Thread: How to "clean" a JPEG

  1. #1

    Thread Starter
    Member
    Join Date
    Mar 2001
    Location
    NYC
    Posts
    45

    Question How to "clean" a JPEG

    I think this is sort of an interesting problem. How would one identify useless data in a JPEG file and delete it? You know, stuff that some programs may leave in there?

  2. #2
    Frenzied Member Jotaf98's Avatar
    Join Date
    Jun 2000
    Location
    I'm not gonna give you my IP address! Ok... Portugal, South-Western Europe, 3rd rock from the sun (our star is easy to find, a 47 Ursae Majoris in the Milky Way :p )
    Posts
    1,457
    Look, there is NO useless data in JPGs, they were made to be the smallest possible
    Code:
    Temp = Me.GetIQ()
    'Error 9: Overflow
    'DON'T PANIC! :eek:

    To learn how to use realistic effects in your games like fire, rain, snow and magic effects, read my article on particles systems here.


    Jotaf's Theories!
    "Cats land on their feet. Toast lands peanut butter side down. A cat with toast strapped to its back will hover above the ground in a state of quantum indecision."

  3. #3

    Thread Starter
    Member
    Join Date
    Mar 2001
    Location
    NYC
    Posts
    45
    Noooo, lookit here:

    http://www.pppr.sk/rainbow/programs.html#JPG Cleaner

    I want to do this in VB. There are some bytes that need to be deleted and I need to know where they are. Thanks.

  4. #4
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Try looking at the JFIF file specification.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  5. #5
    Frenzied Member Jotaf98's Avatar
    Join Date
    Jun 2000
    Location
    I'm not gonna give you my IP address! Ok... Portugal, South-Western Europe, 3rd rock from the sun (our star is easy to find, a 47 Ursae Majoris in the Milky Way :p )
    Posts
    1,457
    There's another way, you can try downloading that program and using it in a JPG loaded with junk. Then compare it with the original JPG, and see the differences
    Code:
    Temp = Me.GetIQ()
    'Error 9: Overflow
    'DON'T PANIC! :eek:

    To learn how to use realistic effects in your games like fire, rain, snow and magic effects, read my article on particles systems here.


    Jotaf's Theories!
    "Cats land on their feet. Toast lands peanut butter side down. A cat with toast strapped to its back will hover above the ground in a state of quantum indecision."

  6. #6

    Thread Starter
    Member
    Join Date
    Mar 2001
    Location
    NYC
    Posts
    45
    I found the code I want at Planet Source Code. I know the difference in size is barely there, but it's still a nice thing to be able to do.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width